summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorRobert Cohn <rscohn2@gmail.com>2021-05-04 09:12:22 -0400
committerGitHub <noreply@github.com>2021-05-04 15:12:22 +0200
commit4ecfe7f09ebf322e6395a78a2b3982f4aa77c81b (patch)
tree2ad92cb12f75c433a4a793a49a870f4d99bf8d99 /var
parent6714ab9b57ab6ca90837d169ab33bb0b21c9c4d9 (diff)
downloadspack-4ecfe7f09ebf322e6395a78a2b3982f4aa77c81b.tar.gz
spack-4ecfe7f09ebf322e6395a78a2b3982f4aa77c81b.tar.bz2
spack-4ecfe7f09ebf322e6395a78a2b3982f4aa77c81b.tar.xz
spack-4ecfe7f09ebf322e6395a78a2b3982f4aa77c81b.zip
sos: add package for sandia openshmem (#23414)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/sos/package.py51
1 files changed, 51 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sos/package.py b/var/spack/repos/builtin/packages/sos/package.py
new file mode 100644
index 0000000000..474e11a41a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/sos/package.py
@@ -0,0 +1,51 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Sos(AutotoolsPackage):
+ """Sandia OpenSHMEM."""
+
+ homepage = "https://github.com/Sandia-OpenSHMEM/SOS"
+ url = "https://github.com/Sandia-OpenSHMEM/SOS/archive/refs/tags/v1.5.0.zip"
+
+ # notify when the package is updated.
+ maintainers = ['rscohn2']
+
+ version('1.5.0', sha256='02679da6085cca2919f900022c46bad48479690586cb4e7f971ec3a735bab4d4')
+ version('1.4.5', sha256='42778ba3cedb632ac3fbbf8917f415a804f8ca3b67fb3da6d636e6c50c501906')
+
+ 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')
+
+ # Enable use of the OSH wrappers outside of Spack by preventing
+ # them from using the spack wrappers
+ filter_compiler_wrappers(
+ 'oshcc', 'oshc++', 'oshcc', 'oshfort', relative_root='bin'
+ )
+
+ def setup_dependent_build_environment(self, env, dependent_spec):
+ self.setup_compiler_environment(env)
+
+ # Enable the osh wrappers to use spack wrappers when inside spack
+ # with env variables
+ env.set('SHMEM_CC', spack_cc)
+ env.set('SHMEM_CXX', spack_cxx)
+ env.set('SHMEM_FC', spack_fc)
+
+ def autoreconf(self, spec, prefix):
+ bash = Executable('bash')
+ bash('./autogen.sh')
+
+ def configure_args(self):
+ args = []
+ args.append('--with-ofi')
+ args.append('--enable-pmi-simple')
+ return args