summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukebroskop <luke.roskop@hpe.com>2021-05-11 18:08:51 -0500
committerGitHub <noreply@github.com>2021-05-11 16:08:51 -0700
commit297f0e489af0f1daf962c628321d04ec8ea8d869 (patch)
tree489b06b5726fc62bc86995156565ebd591c1759f
parentd549e3a60020b085af980cd2ce3a02cc3333ba72 (diff)
downloadspack-297f0e489af0f1daf962c628321d04ec8ea8d869.tar.gz
spack-297f0e489af0f1daf962c628321d04ec8ea8d869.tar.bz2
spack-297f0e489af0f1daf962c628321d04ec8ea8d869.tar.xz
spack-297f0e489af0f1daf962c628321d04ec8ea8d869.zip
craype fix for rempi (#23507)
When comping with cce, use the mpi wrappers
-rw-r--r--var/spack/repos/builtin/packages/rempi/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/rempi/package.py b/var/spack/repos/builtin/packages/rempi/package.py
index 329c4c4c2e..0a68cb5f73 100644
--- a/var/spack/repos/builtin/packages/rempi/package.py
+++ b/var/spack/repos/builtin/packages/rempi/package.py
@@ -20,3 +20,9 @@ class Rempi(AutotoolsPackage):
depends_on("automake", type='build')
depends_on("libtool", type='build')
depends_on("libpciaccess", type='link')
+
+ def setup_build_environment(self, env):
+ if self.spec.satisfies('%cce'):
+ spack_env.set('MPICC', 'mpicc')
+ spack_env.set('MPICXX', 'mpicxx')
+ spack_env.set('MPICH_CC', 'cc')