umpire +rocm: use hipcc as CMAKE_CXX_COMPILER (#33377)
This commit is contained in:
parent
6b45e2fef1
commit
fa30f74e0c
1 changed files with 3 additions and 0 deletions
|
@ -148,6 +148,9 @@ def initconfig_compiler_entries(self):
|
|||
spec = self.spec
|
||||
entries = super(Umpire, self).initconfig_compiler_entries()
|
||||
|
||||
if "+rocm" in spec:
|
||||
entries.insert(0, cmake_cache_path("CMAKE_CXX_COMPILER", spec["hip"].hipcc))
|
||||
|
||||
option_prefix = "UMPIRE_" if spec.satisfies("@2022.03.0:") else ""
|
||||
|
||||
if "+fortran" in spec and self.compiler.fc is not None:
|
||||
|
|
Loading…
Reference in a new issue