spack/var/spack/repos/builtin/packages/slate/omp.patch
G-Ragghianti b659eac453
slate: add v2023.11.05 (#42913)
* Updated version of slate

* Added rocm version conflict

* Added patch to fix openMP problem
2024-03-19 08:58:34 -07:00

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