sos: add xpmem variant (#25260)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
parent
ce199e1c67
commit
2738bc17a1
@ -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 @@ def autoreconf(self, spec, prefix):
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user