umpire +rocm: use hipcc as CMAKE_CXX_COMPILER (#33377)

This commit is contained in:
eugeneswalker 2022-10-19 11:53:58 -07:00 committed by GitHub
parent 6b45e2fef1
commit fa30f74e0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: