chai +rocm: use hipcc as CMAKE_CXX_COMPILER (#33479)

This commit is contained in:
eugeneswalker 2022-10-24 09:08:16 -07:00 committed by GitHub
parent 560a9eec92
commit dda2ff4653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,6 +112,13 @@ def cache_name(self):
self.spec.compiler.version,
)
def initconfig_compiler_entries(self):
spec = self.spec
entries = super(Chai, self).initconfig_compiler_entries()
if "+rocm" in spec:
entries.insert(0, cmake_cache_path("CMAKE_CXX_COMPILER", spec["hip"].hipcc))
return entries
def initconfig_hardware_entries(self):
spec = self.spec
entries = super(Chai, self).initconfig_hardware_entries()