kokkos: modify standlone test to run with +rocm (#46779)
This commit is contained in:
parent
7f6ae2a51e
commit
95b46dca3d
@ -416,8 +416,12 @@ def test_run(self):
|
||||
raise SkipTest(f"{cmake_path} is missing")
|
||||
|
||||
cmake = self.spec["cmake"].command
|
||||
cmake(cmake_path, "-DEXECUTABLE_OUTPUT_PATH=" + cmake_path)
|
||||
cmake_args = ["-DEXECUTABLE_OUTPUT_PATH=" + cmake_path]
|
||||
if self.spec.satisfies("+rocm"):
|
||||
prefix_paths = ";".join(spack.build_environment.get_cmake_prefix_path(self))
|
||||
cmake_args.append("-DCMAKE_PREFIX_PATH={0}".format(prefix_paths))
|
||||
|
||||
cmake(cmake_path, *cmake_args)
|
||||
make = which("make")
|
||||
make()
|
||||
make(cmake_path, "test")
|
||||
|
Loading…
Reference in New Issue
Block a user