Package slate: Added deps for +rocm smoke test (#33218)

* Added deps for slate+rocm smoke test
* Style change
This commit is contained in:
G-Ragghianti 2022-10-12 11:34:48 -04:00 committed by GitHub
parent 949151aff3
commit a227fec4b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,13 +117,10 @@ 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")
prefixes = ";".join( deps = "blaspp lapackpp mpi"
[ if self.spec.satisfies("+rocm"):
self.spec["blaspp"].prefix, deps += " rocblas hip llvm-amdgpu comgr hsa-rocr-dev rocsolver"
self.spec["lapackpp"].prefix, prefixes = ";".join([self.spec[x].prefix for x in deps.split()])
self.spec["mpi"].prefix,
]
)
self.run_test(cmake_bin, ["-DCMAKE_PREFIX_PATH=" + prefixes, ".."]) self.run_test(cmake_bin, ["-DCMAKE_PREFIX_PATH=" + prefixes, ".."])
make() make()
test_args = ["-n", "4", "./ex05_blas"] test_args = ["-n", "4", "./ex05_blas"]