openmpi: add opa-psm2 dependency (#16873)
Also document with_or_without and enable_or_disable, (which are used to configure the opa-psm2 dependency).
This commit is contained in:

committed by
GitHub

parent
ab6905d5fa
commit
feda2a3073
@@ -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 @@ def with_or_without_tm(self, activated):
|
||||
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
|
||||
|
Reference in New Issue
Block a user