diff options
author | Robert Cohn <rscohn2@gmail.com> | 2021-08-09 09:16:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 13:16:19 +0000 |
commit | 2738bc17a144490328e0c7c57dd6ef630880d4e7 (patch) | |
tree | 3a12db23a61e6f8a9051f112795f54aeadaca809 | |
parent | ce199e1c67c74e6ea94183ba57e22e039d42810b (diff) | |
download | spack-2738bc17a144490328e0c7c57dd6ef630880d4e7.tar.gz spack-2738bc17a144490328e0c7c57dd6ef630880d4e7.tar.bz2 spack-2738bc17a144490328e0c7c57dd6ef630880d4e7.tar.xz spack-2738bc17a144490328e0c7c57dd6ef630880d4e7.zip |
sos: add xpmem variant (#25260)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/sos/package.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/sos/package.py b/var/spack/repos/builtin/packages/sos/package.py index 474e11a41a..a8f883a382 100644 --- a/var/spack/repos/builtin/packages/sos/package.py +++ b/var/spack/repos/builtin/packages/sos/package.py @@ -18,12 +18,17 @@ class Sos(AutotoolsPackage): version('1.5.0', sha256='02679da6085cca2919f900022c46bad48479690586cb4e7f971ec3a735bab4d4') version('1.4.5', sha256='42778ba3cedb632ac3fbbf8917f415a804f8ca3b67fb3da6d636e6c50c501906') + variant('xpmem', default=False, description='Enable xpmem for transport') + variant('ofi', default=True, description='Enable ofi for transport') + variant('shr-atomics', default=False, description='Enable shared memory atomic operations') + depends_on('autoconf', type='build') depends_on('automake', type='build') depends_on('libtool', type='build') depends_on('m4', type='build') - depends_on('libfabric', type='link') + depends_on('libfabric', type='link', when='+ofi') + depends_on('xpmem', type='link', when='+xpmem') # Enable use of the OSH wrappers outside of Spack by preventing # them from using the spack wrappers @@ -46,6 +51,9 @@ class Sos(AutotoolsPackage): def configure_args(self): args = [] - args.append('--with-ofi') + args.extend(self.with_or_without('xpmem')) + args.extend(self.with_or_without('ofi')) + # This option is not compatiable with remote atomics + args.extend(self.with_or_without('shr-atomics')) args.append('--enable-pmi-simple') return args |