raja +rocm: use hipcc as CMAKE_CXX_COMPILER (#33375)
This commit is contained in:
parent
5cce66be75
commit
6b45e2fef1
1 changed files with 7 additions and 0 deletions
|
@ -104,6 +104,13 @@ def cache_name(self):
|
||||||
self.spec.compiler.version,
|
self.spec.compiler.version,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def initconfig_compiler_entries(self):
|
||||||
|
spec = self.spec
|
||||||
|
entries = super(Raja, 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):
|
def initconfig_hardware_entries(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
entries = super(Raja, self).initconfig_hardware_entries()
|
entries = super(Raja, self).initconfig_hardware_entries()
|
||||||
|
|
Loading…
Reference in a new issue