diff options
author | sknigh <sknigh@sandia.gov> | 2017-08-23 15:47:28 -0700 |
---|---|---|
committer | becker33 <becker33@llnl.gov> | 2017-08-23 15:47:28 -0700 |
commit | 49a9d63be74e3e5ee4dc1b91aa4004b7f78953d3 (patch) | |
tree | 5444028ac9fbf110ea9f663a6f59b53c467175cb | |
parent | 5d7901b31252e5828eaa99babb827b5dba4eea8e (diff) | |
download | spack-49a9d63be74e3e5ee4dc1b91aa4004b7f78953d3.tar.gz spack-49a9d63be74e3e5ee4dc1b91aa4004b7f78953d3.tar.bz2 spack-49a9d63be74e3e5ee4dc1b91aa4004b7f78953d3.tar.xz spack-49a9d63be74e3e5ee4dc1b91aa4004b7f78953d3.zip |
Added options to libfabrics (#5191)
-rw-r--r-- | var/spack/repos/builtin/packages/libfabric/package.py | 29 |
1 files changed, 29 insertions, 0 deletions
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 |