hip stand-alone test: simplify setting CMAKE_PREFIX_PATH (#46856)

This commit is contained in:
Tamara Dahlgren 2024-10-21 14:15:33 -07:00 committed by GitHub
parent 275d1d88f4
commit d9e8c5f13e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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++")