diff options
author | G-Ragghianti <33492707+G-Ragghianti@users.noreply.github.com> | 2024-04-05 14:32:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-05 11:32:16 -0700 |
commit | c4094cf051adf6f6e20bb2daf762c940b0386f6b (patch) | |
tree | 8cc6948baa69ca2749c437d3a3c0627187a796c7 | |
parent | 9ff9ca61e61af847920c9048f91d511d00476737 (diff) | |
download | spack-c4094cf051adf6f6e20bb2daf762c940b0386f6b.tar.gz spack-c4094cf051adf6f6e20bb2daf762c940b0386f6b.tar.bz2 spack-c4094cf051adf6f6e20bb2daf762c940b0386f6b.tar.xz spack-c4094cf051adf6f6e20bb2daf762c940b0386f6b.zip |
slate: Adding comgr as dependency (#43448)
* Adding comgr as dependency
* adding more smoke test deps
-rw-r--r-- | var/spack/repos/builtin/packages/slate/package.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/slate/package.py b/var/spack/repos/builtin/packages/slate/package.py index 313f7e5327..c4b59bcac1 100644 --- a/var/spack/repos/builtin/packages/slate/package.py +++ b/var/spack/repos/builtin/packages/slate/package.py @@ -92,6 +92,9 @@ class Slate(CMakePackage, CudaPackage, ROCmPackage): depends_on("scalapack", when="@:2022.07.00", type="test") depends_on("python", type="test") 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") @@ -166,9 +169,11 @@ class Slate(CMakePackage, CudaPackage, ROCmPackage): test_dir = join_path(self.test_suite.current_test_cache_dir, "examples", "build") with working_dir(test_dir, create=True): 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" 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()]) self.run_test(cmake_bin, ["-DCMAKE_PREFIX_PATH=" + prefixes, ".."]) make() |