summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2022-10-19 11:43:51 -0700
committerGitHub <noreply@github.com>2022-10-19 13:43:51 -0500
commit6b45e2fef11e15d97a4d931d2d74204704ef3ff6 (patch)
treea6b59655a949132d435d47370b81cba51fe3f6b1 /var
parent5cce66be754be4328eee99a8d46b4b75699e9413 (diff)
downloadspack-6b45e2fef11e15d97a4d931d2d74204704ef3ff6.tar.gz
spack-6b45e2fef11e15d97a4d931d2d74204704ef3ff6.tar.bz2
spack-6b45e2fef11e15d97a4d931d2d74204704ef3ff6.tar.xz
spack-6b45e2fef11e15d97a4d931d2d74204704ef3ff6.zip
raja +rocm: use hipcc as CMAKE_CXX_COMPILER (#33375)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/raja/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/raja/package.py b/var/spack/repos/builtin/packages/raja/package.py
index b9e1f6fe8f..d185eb31fc 100644
--- a/var/spack/repos/builtin/packages/raja/package.py
+++ b/var/spack/repos/builtin/packages/raja/package.py
@@ -104,6 +104,13 @@ class Raja(CachedCMakePackage, CudaPackage, ROCmPackage):
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()