summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathon Anderson <jonathon.anderson@colorado.edu>2020-05-02 10:07:50 -0600
committerGitHub <noreply@github.com>2020-05-02 11:07:50 -0500
commit08f88b4be6e7a8ff6665d0833281fdcfcb0ab116 (patch)
treeafb6266db34afdd76937547b333e00b48aa49a7f
parentadafdf0644a7ab14c7e396492ab7692d75e3a3db (diff)
downloadspack-08f88b4be6e7a8ff6665d0833281fdcfcb0ab116.tar.gz
spack-08f88b4be6e7a8ff6665d0833281fdcfcb0ab116.tar.bz2
spack-08f88b4be6e7a8ff6665d0833281fdcfcb0ab116.tar.xz
spack-08f88b4be6e7a8ff6665d0833281fdcfcb0ab116.zip
Add a gpfs variant to openmpi package (#15793)
Open MPI will detect and link against GPFS if it is present on the system. This variant allows this to be disabled, even if GPFS is present.
-rw-r--r--var/spack/repos/builtin/packages/openmpi/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py
index bb798e7b5f..d0da29d774 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -242,6 +242,7 @@ class Openmpi(AutotoolsPackage):
variant('runpath', default=True, description='Enable wrapper runpath')
variant('cxx', default=False, description='Enable C++ MPI bindings')
variant('cxx_exceptions', default=False, description='Enable C++ Exception support')
+ variant('gpfs', default=True, description='Enable GPFS support (if present)')
# Adding support to build a debug version of OpenMPI that activates
# Memchecker, as described here:
#
@@ -410,6 +411,11 @@ class Openmpi(AutotoolsPackage):
perl = which('perl')
perl('autogen.pl')
+ def setup_build_environment(self, env):
+ if '~gpfs' in self.spec:
+ env.set('ac_cv_header_gpfs_h', 'no')
+ env.set('ac_cv_header_gpfs_fcntl_h', 'no')
+
def configure_args(self):
spec = self.spec
config_args = [