From 49a9d63be74e3e5ee4dc1b91aa4004b7f78953d3 Mon Sep 17 00:00:00 2001 From: sknigh Date: Wed, 23 Aug 2017 15:47:28 -0700 Subject: [PATCH] Added options to libfabrics (#5191) --- .../builtin/packages/libfabric/package.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/var/spack/repos/builtin/packages/libfabric/package.py b/var/spack/repos/builtin/packages/libfabric/package.py index 4128e8250a..b90e2fa262 100644 --- a/var/spack/repos/builtin/packages/libfabric/package.py +++ b/var/spack/repos/builtin/packages/libfabric/package.py @@ -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