diff options
author | eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> | 2022-10-19 11:43:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 13:43:51 -0500 |
commit | 6b45e2fef11e15d97a4d931d2d74204704ef3ff6 (patch) | |
tree | a6b59655a949132d435d47370b81cba51fe3f6b1 /var | |
parent | 5cce66be754be4328eee99a8d46b4b75699e9413 (diff) | |
download | spack-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.py | 7 |
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() |