diff options
author | Paul Ferrell <51765748+Paul-Ferrell@users.noreply.github.com> | 2022-04-27 14:41:06 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 13:41:06 -0700 |
commit | 9ffb3b4ac03d93cfce2dbdda47a471eb989eb243 (patch) | |
tree | 3b939b49bb63773de09aa04928e0ac1a17c27f78 | |
parent | 893c5271ac1bf55bd598f0f4d7b1a4258e5dbd55 (diff) | |
download | spack-9ffb3b4ac03d93cfce2dbdda47a471eb989eb243.tar.gz spack-9ffb3b4ac03d93cfce2dbdda47a471eb989eb243.tar.bz2 spack-9ffb3b4ac03d93cfce2dbdda47a471eb989eb243.tar.xz spack-9ffb3b4ac03d93cfce2dbdda47a471eb989eb243.zip |
mvapich2 MPI_ROOT needed in modules (#30335)
We've found that when using mvapich2 via modules, we need to set the MPI_ROOT
environment variable.
-rw-r--r-- | var/spack/repos/builtin/packages/mvapich2/package.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mvapich2/package.py b/var/spack/repos/builtin/packages/mvapich2/package.py index 5e787f50f8..deead402c6 100644 --- a/var/spack/repos/builtin/packages/mvapich2/package.py +++ b/var/spack/repos/builtin/packages/mvapich2/package.py @@ -335,6 +335,8 @@ class Mvapich2(AutotoolsPackage): if 'process_managers=slurm' in self.spec: env.set('SLURM_MPI_TYPE', 'pmi2') + env.set('MPI_ROOT', self.prefix) + # Because MPI functions as a compiler, we need to treat it as one and # add its compiler paths to the run environment. self.setup_compiler_environment(env) |