slate: Adding comgr as dependency (#43448)

* Adding comgr as dependency

* adding more smoke test deps
This commit is contained in:
G-Ragghianti 2024-04-05 14:32:16 -04:00 committed by GitHub
parent 9ff9ca61e6
commit c4094cf051
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,6 +92,9 @@ class Slate(CMakePackage, CudaPackage, ROCmPackage):
depends_on("scalapack", when="@:2022.07.00", type="test") depends_on("scalapack", when="@:2022.07.00", type="test")
depends_on("python", type="test") depends_on("python", type="test")
depends_on("hipify-clang", when="@:2021.05.02 +rocm ^hip@5:") depends_on("hipify-clang", when="@:2021.05.02 +rocm ^hip@5:")
depends_on("comgr", when="+rocm")
depends_on("rocblas", when="+rocm")
depends_on("rocsolver", when="+rocm")
requires("%oneapi", when="+sycl", msg="slate+sycl must be compiled with %oneapi") requires("%oneapi", when="+sycl", msg="slate+sycl must be compiled with %oneapi")
@ -166,9 +169,11 @@ def test(self):
test_dir = join_path(self.test_suite.current_test_cache_dir, "examples", "build") test_dir = join_path(self.test_suite.current_test_cache_dir, "examples", "build")
with working_dir(test_dir, create=True): with working_dir(test_dir, create=True):
cmake_bin = join_path(self.spec["cmake"].prefix.bin, "cmake") cmake_bin = join_path(self.spec["cmake"].prefix.bin, "cmake")
# This package must directly depend on all packages listed here.
# Otherwise, it will not work when some packages are external to spack.
deps = "slate blaspp lapackpp mpi" deps = "slate blaspp lapackpp mpi"
if self.spec.satisfies("+rocm"): if self.spec.satisfies("+rocm"):
deps += " rocblas hip llvm-amdgpu comgr hsa-rocr-dev rocsolver" deps += " rocblas hip llvm-amdgpu comgr hsa-rocr-dev rocsolver "
prefixes = ";".join([self.spec[x].prefix for x in deps.split()]) prefixes = ";".join([self.spec[x].prefix for x in deps.split()])
self.run_test(cmake_bin, ["-DCMAKE_PREFIX_PATH=" + prefixes, ".."]) self.run_test(cmake_bin, ["-DCMAKE_PREFIX_PATH=" + prefixes, ".."])
make() make()