summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSameer Shende <sameer@cs.uoregon.edu>2019-07-01 11:47:14 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2019-07-01 15:09:40 -0700
commit4d0926464cdfa9b9658ac4eabc6c8ed56b8720ca (patch)
treed8de5153a62f6bc042c3234227b3409805434829 /var
parent54de03548be21b540cc23b4bfcfd900e2fb8c985 (diff)
downloadspack-4d0926464cdfa9b9658ac4eabc6c8ed56b8720ca.tar.gz
spack-4d0926464cdfa9b9658ac4eabc6c8ed56b8720ca.tar.bz2
spack-4d0926464cdfa9b9658ac4eabc6c8ed56b8720ca.tar.xz
spack-4d0926464cdfa9b9658ac4eabc6c8ed56b8720ca.zip
mpich: wrapperrpath variant allows disablement of RPATH usage in mpicc
Added a wrapperrpath variant to mpich that defaults to `True`. Users can set this to `False` (e.g., spack install mpich~wrapperrpath) to disable the wrapper RPATHs. This makes it easier to replacing an MPICH installation in a container with an MPICH for the host system, e.g., Cray MPICH with Shifter on Cori, Intel MPI, MVAPICH2, etc. Co-authored-by: Todd Gamblin <tgamblin@llnl.gov>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mpich/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/mpich/package.py b/var/spack/repos/builtin/packages/mpich/package.py
index 93a65ab6ac..918ebfd64e 100644
--- a/var/spack/repos/builtin/packages/mpich/package.py
+++ b/var/spack/repos/builtin/packages/mpich/package.py
@@ -33,6 +33,7 @@ class Mpich(AutotoolsPackage):
variant('romio', default=True, description='Enable ROMIO MPI I/O implementation')
variant('verbs', default=False, description='Build support for OpenFabrics verbs.')
variant('slurm', default=False, description='Enable SLURM support')
+ variant('wrapperrpath', default=True, description='Enable wrapper rpath')
variant(
'pmi',
default='pmi',
@@ -172,7 +173,9 @@ spack package at this time.''',
'--enable-shared',
'--with-pm={0}'.format('hydra' if '+hydra' in spec else 'no'),
'--{0}-romio'.format('enable' if '+romio' in spec else 'disable'),
- '--{0}-ibverbs'.format('with' if '+verbs' in spec else 'without')
+ '--{0}-ibverbs'.format('with' if '+verbs' in spec else 'without'),
+ '--enable-wrapper-rpath={0}'.format('no' if '~wrapperrpath' in
+ spec else 'yes')
]
if 'pmi=off' in spec: