diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2016-01-18 16:03:41 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2016-01-18 16:03:41 -0600 |
commit | 58162ec17070db5476b3aeffe1ef40d676a62949 (patch) | |
tree | 72537080fc09b52ddeaa01d536928c59812b12de | |
parent | d802165e039a3661831e84ecbdd31f1c4107d39d (diff) | |
download | spack-58162ec17070db5476b3aeffe1ef40d676a62949.tar.gz spack-58162ec17070db5476b3aeffe1ef40d676a62949.tar.bz2 spack-58162ec17070db5476b3aeffe1ef40d676a62949.tar.xz spack-58162ec17070db5476b3aeffe1ef40d676a62949.zip |
Add verbs variant, remove deprecated configure flags
-rw-r--r-- | var/spack/packages/mpich/package.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/var/spack/packages/mpich/package.py b/var/spack/packages/mpich/package.py index 00b7dfda75..128a1f44ae 100644 --- a/var/spack/packages/mpich/package.py +++ b/var/spack/packages/mpich/package.py @@ -41,6 +41,8 @@ class Mpich(Package): version('3.1', '5643dd176499bfb7d25079aaff25f2ec') version('3.0.4', '9c5d5d4fe1e17dd12153f40bc5b6dbc0') + variant('verbs', default=False, description='Build support for OpenFabrics verbs.') + provides('mpi@:3.0', when='@3:') provides('mpi@:1.3', when='@1:') @@ -56,14 +58,20 @@ class Mpich(Package): config_args = ["--prefix=" + prefix, "--enable-shared"] + # Variants + if '+verbs' in spec: + config_args.append("--with-ibverbs") + else: + config_args.append("--without-ibverbs") + # TODO: Spack should make it so that you can't actually find # these compilers if they're "disabled" for the current # compiler configuration. if not self.compiler.f77: - config_args.append("--disable-f77") + config_args.append("--disable-fortran=f77") if not self.compiler.fc: - config_args.append("--disable-fc") + config_args.append("--disable-fortran=fc") configure(*config_args) make() |