summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorPhil Carns <carns@mcs.anl.gov>2019-05-03 02:11:31 -0500
committerAxel Huebl <axel.huebl@plasma.ninja>2019-05-03 09:11:31 +0200
commit2c2228df59215dd0fb3cc0676b88be043ccd8b59 (patch)
treed4837ca401e8e3954a79d9651b70a7107041d3db /var
parent42b01c02b14aa609e6b0ffdde31a10389fc9cf53 (diff)
downloadspack-2c2228df59215dd0fb3cc0676b88be043ccd8b59.tar.gz
spack-2c2228df59215dd0fb3cc0676b88be043ccd8b59.tar.bz2
spack-2c2228df59215dd0fb3cc0676b88be043ccd8b59.tar.xz
spack-2c2228df59215dd0fb3cc0676b88be043ccd8b59.zip
add BMI package (#11310)
- also enable optional dependency in Mercury
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/bmi/package.py25
-rw-r--r--var/spack/repos/builtin/packages/mercury/package.py2
2 files changed, 26 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/bmi/package.py b/var/spack/repos/builtin/packages/bmi/package.py
new file mode 100644
index 0000000000..4d31890bc5
--- /dev/null
+++ b/var/spack/repos/builtin/packages/bmi/package.py
@@ -0,0 +1,25 @@
+# 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 Bmi(AutotoolsPackage):
+ """a communications framework and network abstraction layer"""
+
+ homepage = 'http://git.mcs.anl.gov/bmi.git/'
+ git = 'git://git.mcs.anl.gov/bmi'
+
+ version('develop', branch='master')
+
+ depends_on('autoconf', type='build')
+
+ # need to override 'autoreconf' so we can run BMI's 'prepare' script
+ def autoreconf(self, spec, prefix):
+ Executable('./prepare')()
+
+ def configure_args(self):
+ args = ["--enable-shared", "--enable-bmi-only"]
+ return args
diff --git a/var/spack/repos/builtin/packages/mercury/package.py b/var/spack/repos/builtin/packages/mercury/package.py
index bfa45491c9..f25d250ec8 100644
--- a/var/spack/repos/builtin/packages/mercury/package.py
+++ b/var/spack/repos/builtin/packages/mercury/package.py
@@ -34,8 +34,8 @@ class Mercury(CMakePackage):
description='Enable udreg on supported Cray platforms')
depends_on('cmake@2.8.12.2:', type='build')
- # depends_on('bmi', when='+bmi') # TODO: add BMI package
# depends_on('cci', when='+cci') # TODO: add CCI package
+ depends_on('bmi', when='+bmi')
depends_on('mpi', when='+mpi')
depends_on('libfabric@1.5:', when='+ofi')
depends_on('openpa@1.0.3:', when='+opa')