raja +rocm: use hipcc as CMAKE_CXX_COMPILER (#33375)

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

View file

@ -104,6 +104,13 @@ def cache_name(self):
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):
spec = self.spec
entries = super(Raja, self).initconfig_hardware_entries()