slate: add v2023.11.05 (#42913)

* Updated version of slate

* Added rocm version conflict

* Added patch to fix openMP problem
This commit is contained in:
G-Ragghianti 2024-03-19 11:58:34 -04:00 committed by GitHub
parent ab590cc03a
commit b659eac453
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,20 @@
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

View File

@ -26,6 +26,9 @@ class Slate(CMakePackage, CudaPackage, ROCmPackage):
license("BSD-3-Clause")
version("master", branch="master")
version(
"2023.11.05", sha256="d3d925adec137ef4b7d876b2d7d0f8f2ff9d8485fa4125454a42f5da4ac026f3"
)
version(
"2023.08.25", sha256="0894d8669ed88358cc7c4cb7b77d8467336613245a7b843f3504e9224632ce0e"
)
@ -48,6 +51,8 @@ class Slate(CMakePackage, CudaPackage, ROCmPackage):
"2020.10.00", sha256="ff58840cdbae2991d100dfbaf3ef2f133fc2f43fc05f207dc5e38a41137882ab"
)
patch("omp.patch", when="@2023.11.05")
variant(
"mpi", default=True, description="Build with MPI support (without MPI is experimental)."
)
@ -77,6 +82,7 @@ class Slate(CMakePackage, CudaPackage, ROCmPackage):
for val in ROCmPackage.amdgpu_targets:
depends_on("blaspp +rocm amdgpu_target=%s" % val, when="amdgpu_target=%s" % val)
depends_on("lapackpp +rocm amdgpu_target=%s" % val, when="amdgpu_target=%s" % val)
depends_on("lapackpp@2023.11.05:", when="@2023.11.05:")
depends_on("lapackpp@2023.08.25:", when="@2023.08.25:")
depends_on("lapackpp@2022.07.00:", when="@2022.07.00:")
depends_on("lapackpp@2022.05.00:", when="@2022.05.00:")
@ -101,6 +107,7 @@ class Slate(CMakePackage, CudaPackage, ROCmPackage):
conflicts("+rocm", when="+sycl", msg=backend_msg)
conflicts("+cuda", when="+sycl", msg=backend_msg)
conflicts("+sycl", when="@:2022.07.00", msg="SYCL support requires SLATE version 2023.08.25")
conflicts("^hip@5.6.0:", when="@:2023.08.25", msg="Incompatible version of HIP/ROCm")
def cmake_args(self):
spec = self.spec