summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorFrancois Budin <francois.budin@kitware.com>2019-04-30 20:47:35 -0400
committerPeter Scheibel <scheibel1@llnl.gov>2019-05-01 09:47:34 +0900
commitb56e418dfe9a1f470fe212997ce2bfe14050f41a (patch)
tree3c85686c85349146a51eecc629afba2e4332c966 /var
parent52752efa4d1f06ae0c6d27902f7cc9fa4f929ab7 (diff)
downloadspack-b56e418dfe9a1f470fe212997ce2bfe14050f41a.tar.gz
spack-b56e418dfe9a1f470fe212997ce2bfe14050f41a.tar.bz2
spack-b56e418dfe9a1f470fe212997ce2bfe14050f41a.tar.xz
spack-b56e418dfe9a1f470fe212997ce2bfe14050f41a.zip
Add margo package and add rc1 tag for argobots package (#11281)
margo package is a required dependency for unifycr but the package was not available in spack. margo requires a recent version of argobots that has the ABT_SCHED_BASIC_WAIT scheduler (rc1 does while previously available versions of this package in spack did not have it).
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/argobots/package.py1
-rw-r--r--var/spack/repos/builtin/packages/margo/package.py50
2 files changed, 51 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/argobots/package.py b/var/spack/repos/builtin/packages/argobots/package.py
index edb1f970f3..7ceca52c70 100644
--- a/var/spack/repos/builtin/packages/argobots/package.py
+++ b/var/spack/repos/builtin/packages/argobots/package.py
@@ -20,6 +20,7 @@ class Argobots(AutotoolsPackage):
git = "https://github.com/pmodels/argobots.git"
version("develop", branch="master")
+ version("1.0rc1", "729c018f3353976cb79c07ecaa13319d")
version("1.0b1", "5eeab7b2c639d08bbea22db3026cdf39")
version("1.0a1", "9d29d57d14d718f93b505178f6ba3e08")
diff --git a/var/spack/repos/builtin/packages/margo/package.py b/var/spack/repos/builtin/packages/margo/package.py
new file mode 100644
index 0000000000..928066d1a0
--- /dev/null
+++ b/var/spack/repos/builtin/packages/margo/package.py
@@ -0,0 +1,50 @@
+# Copyright 2013-2019 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 Margo(AutotoolsPackage):
+ """Argobots bindings to the Mercury RPC API"""
+
+ homepage = "https://xgitlab.cels.anl.gov/sds/margo"
+ url = "https://xgitlab.cels.anl.gov/sds/margo/-/archive/v0.4.3/margo-v0.4.3.tar.gz"
+ git = "https://xgitlab.cels.anl.gov/sds/margo.git"
+
+ maintainers = ['fbudin69500', 'chuckatkins']
+
+ version('develop', branch='master')
+ version('0.4.3', sha256='61a634d6983bee2ffa06e1e2da4c541cb8f56ddd9dd9f8e04e8044fb38657475')
+
+ variant('shared', default=True,
+ description='Build shared libraries instead of static libraries')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('m4', type='build')
+ depends_on('pkgconfig', type='build')
+
+ depends_on('mercury')
+ depends_on('argobots@1.0rc1:')
+
+ build_directory = 'spack-build'
+
+ def configure_args(self):
+ spec = self.spec
+ args = []
+
+ if '+shared' in spec:
+ args.append('--enable-shared')
+ args.append('--disable-static')
+ else:
+ args.append('--enable-static')
+ args.append('--disable-shared')
+
+ return args
+
+ def autoreconf(self, spec, prefix):
+ sh = which('sh')
+ sh('./prepare.sh')