summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2022-10-19 11:53:58 -0700
committerGitHub <noreply@github.com>2022-10-19 12:53:58 -0600
commitfa30f74e0c120a642ed3d5e0786b934ff0b8a7fc (patch)
treeccda17899aa6fd1a7bcb2889277fd32c4dac361f /var
parent6b45e2fef11e15d97a4d931d2d74204704ef3ff6 (diff)
downloadspack-fa30f74e0c120a642ed3d5e0786b934ff0b8a7fc.tar.gz
spack-fa30f74e0c120a642ed3d5e0786b934ff0b8a7fc.tar.bz2
spack-fa30f74e0c120a642ed3d5e0786b934ff0b8a7fc.tar.xz
spack-fa30f74e0c120a642ed3d5e0786b934ff0b8a7fc.zip
umpire +rocm: use hipcc as CMAKE_CXX_COMPILER (#33377)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/umpire/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/umpire/package.py b/var/spack/repos/builtin/packages/umpire/package.py
index 3916b7a234..d22f49a05d 100644
--- a/var/spack/repos/builtin/packages/umpire/package.py
+++ b/var/spack/repos/builtin/packages/umpire/package.py
@@ -148,6 +148,9 @@ class Umpire(CachedCMakePackage, CudaPackage, ROCmPackage):
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: