chai +rocm: use hipcc as CMAKE_CXX_COMPILER (#33479)
This commit is contained in:
parent
560a9eec92
commit
dda2ff4653
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user