Package slate: Added deps for +rocm smoke test (#33218)
* Added deps for slate+rocm smoke test * Style change
This commit is contained in:
parent
949151aff3
commit
a227fec4b9
@ -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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user