summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2019-10-26 22:03:39 -0400
committerGitHub <noreply@github.com>2019-10-26 22:03:39 -0400
commitc107b7531c0ce2ec3fca9033a7aef0d381179335 (patch)
treeb415aec70c43add28136c6cbf03637fddc949a91 /var
parentd68b554cd3e00cb19d02c5c166cbc7997b486c68 (diff)
downloadspack-c107b7531c0ce2ec3fca9033a7aef0d381179335.tar.gz
spack-c107b7531c0ce2ec3fca9033a7aef0d381179335.tar.bz2
spack-c107b7531c0ce2ec3fca9033a7aef0d381179335.tar.xz
spack-c107b7531c0ce2ec3fca9033a7aef0d381179335.zip
MPICH: Fix Slurm Find Issue (#13263)
Set include and library path to slurm explicitly.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mpich/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mpich/package.py b/var/spack/repos/builtin/packages/mpich/package.py
index 5d7a74cb59..231dc884bf 100644
--- a/var/spack/repos/builtin/packages/mpich/package.py
+++ b/var/spack/repos/builtin/packages/mpich/package.py
@@ -180,6 +180,15 @@ spack package at this time.''',
spec else 'yes')
]
+ if '+slurm' in spec:
+ config_args.append('--with-slurm=yes')
+ config_args.append('--with-slurm-include={0}'.format(
+ spec['slurm'].prefix.include))
+ config_args.append('--with-slurm-lib={0}'.format(
+ spec['slurm'].prefix.lib))
+ else:
+ config_args.append('--with-slurm=no')
+
if 'pmi=off' in spec:
config_args.append('--with-pmi=no')
elif 'pmi=pmi' in spec: