
* Updated version of slate * Added rocm version conflict * Added patch to fix openMP problem
21 lines
512 B
Diff
21 lines
512 B
Diff
diff --git a/src/omptarget/device_util.hh b/src/omptarget/device_util.hh
|
|
index e7aa15c3..3968878d 100644
|
|
--- a/src/omptarget/device_util.hh
|
|
+++ b/src/omptarget/device_util.hh
|
|
@@ -6,6 +6,8 @@
|
|
#ifndef SLATE_OMPTARGET_UTIL_HH
|
|
#define SLATE_OMPTARGET_UTIL_HH
|
|
|
|
+#ifdef SLATE_HAVE_OMPTARGET
|
|
+
|
|
#include <math.h>
|
|
|
|
namespace slate {
|
|
@@ -157,4 +159,6 @@ inline double abs_val(std::complex<double> x)
|
|
} // namespace device
|
|
} // namespace slate
|
|
|
|
+#endif // SLATE_HAVE_OMPTARGET
|
|
+
|
|
#endif // SLATE_OMPTARGET_UTIL_HH
|