hip stand-alone test: simplify setting CMAKE_PREFIX_PATH (#46856)
This commit is contained in:
parent
275d1d88f4
commit
d9e8c5f13e
@ -638,14 +638,7 @@ def test_samples(self):
|
||||
test_dir = join_path(self.test_suite.current_test_cache_dir, self.test_src_dir_old)
|
||||
elif self.spec.satisfies("@5.6:"):
|
||||
test_dir = join_path(self.test_suite.current_test_cache_dir, self.test_src_dir)
|
||||
prefixes = ";".join(
|
||||
[
|
||||
self.spec["hip"].prefix,
|
||||
self.spec["llvm-amdgpu"].prefix,
|
||||
self.spec["comgr"].prefix,
|
||||
self.spec["hsa-rocr-dev"].prefix,
|
||||
]
|
||||
)
|
||||
prefixes = ";".join(spack.build_environment.get_cmake_prefix_path(self))
|
||||
cc_options = ["-DCMAKE_PREFIX_PATH=" + prefixes, ".."]
|
||||
|
||||
amdclang_path = join_path(self.spec["llvm-amdgpu"].prefix, "bin", "amdclang++")
|
||||
|
Loading…
Reference in New Issue
Block a user