Added options to libfabrics (#5191)

This commit is contained in:
sknigh 2017-08-23 15:47:28 -07:00 committed by becker33
parent 5d7901b312
commit 49a9d63be7

View file

@ -33,3 +33,32 @@ class Libfabric(AutotoolsPackage):
url = "https://github.com/ofiwg/libfabric/releases/download/v1.5.0/libfabric-1.5.0.tar.gz"
version('1.5.0', 'fda3e9b31ebe184f5157288d059672d6')
fabrics = ('psm',
'psm2',
'sockets',
'verbs',
'usnic',
'mxm',
'gni',
'xpmem',
'udp',
'rxm',
'rxd')
variant(
'fabrics',
default='sockets',
description='A list of enabled fabrics',
values=fabrics,
multi=True
)
def configure_args(self):
args = []
args.extend(['--enable-%s=%s' %
(f, 'yes' if 'fabrics=%s' % f in self.spec else 'no')
for f in self.fabrics])
return args