summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJonathon Anderson <jonathon.anderson@colorado.edu>2020-06-01 16:33:24 -0600
committerGitHub <noreply@github.com>2020-06-01 15:33:24 -0700
commitfeda2a3073e80ca3a31419ecdb168c5d29563a47 (patch)
treee676a9632a7c047496939a49671b34467fbba9fb /var
parentab6905d5fa6c3d7380600b768644fdfcc6cffe31 (diff)
downloadspack-feda2a3073e80ca3a31419ecdb168c5d29563a47.tar.gz
spack-feda2a3073e80ca3a31419ecdb168c5d29563a47.tar.bz2
spack-feda2a3073e80ca3a31419ecdb168c5d29563a47.tar.xz
spack-feda2a3073e80ca3a31419ecdb168c5d29563a47.zip
openmpi: add opa-psm2 dependency (#16873)
Also document with_or_without and enable_or_disable, (which are used to configure the opa-psm2 dependency).
Diffstat (limited to 'var')
-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 183447236f..abe7b1d3ee 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -247,6 +247,7 @@ class Openmpi(AutotoolsPackage):
depends_on('ucx +thread_multiple', when='fabrics=ucx +thread_multiple')
depends_on('ucx +thread_multiple', when='@3.0.0: fabrics=ucx')
depends_on('libfabric', when='fabrics=libfabric')
+ depends_on('opa-psm2', when='fabrics=psm2')
depends_on('mxm', when='fabrics=mxm')
depends_on('binutils+libiberty', when='fabrics=mxm')
depends_on('rdma-core', when='fabrics=verbs')
@@ -330,6 +331,11 @@ class Openmpi(AutotoolsPackage):
return '--without-tm'
return '--with-tm={0}'.format(self.spec['openpbs'].prefix)
+ def with_or_without_psm2(self, activated):
+ if not activated:
+ return '--without-psm2'
+ return '--with-psm2={0}'.format(self.spec['opa-psm2'].prefix)
+
@run_before('autoreconf')
def die_without_fortran(self):
# Until we can pass variants such as +fortran through virtual