From feda2a3073e80ca3a31419ecdb168c5d29563a47 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Mon, 1 Jun 2020 16:33:24 -0600 Subject: openmpi: add opa-psm2 dependency (#16873) Also document with_or_without and enable_or_disable, (which are used to configure the opa-psm2 dependency). --- var/spack/repos/builtin/packages/openmpi/package.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'var') 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 -- cgit v1.2.3-70-g09d2