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>
This commit is contained in:
parent
54de03548b
commit
4d0926464c
@ -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 @@ def configure_args(self):
|
||||
'--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:
|
||||
|
Loading…
Reference in New Issue
Block a user