summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-05-03 10:30:35 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2016-05-03 10:30:35 -0500
commit51c6867f72e91bb061e8bd021b64fa12706c0f33 (patch)
treec8ae77f3809dc4ac8ef30214ccda452f2c43946a
parent60048c655022c3bf151c6984360ee0ce6e0cf18d (diff)
downloadspack-51c6867f72e91bb061e8bd021b64fa12706c0f33.tar.gz
spack-51c6867f72e91bb061e8bd021b64fa12706c0f33.tar.bz2
spack-51c6867f72e91bb061e8bd021b64fa12706c0f33.tar.xz
spack-51c6867f72e91bb061e8bd021b64fa12706c0f33.zip
Re-add hwloc as a dependency of openmpi
-rw-r--r--var/spack/repos/builtin/packages/openmpi/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py
index 3cb9b0be21..74f0a7bfd1 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -34,6 +34,8 @@ class Openmpi(Package):
provides('mpi@:2.2', when='@1.6.5')
provides('mpi@:3.0', when='@1.7.5:')
+ depends_on('hwloc')
+
def url_for_version(self, version):
return "http://www.open-mpi.org/software/ompi/v%s/downloads/openmpi-%s.tar.bz2" % (version.up_to(2), version)
@@ -48,6 +50,7 @@ class Openmpi(Package):
def install(self, spec, prefix):
config_args = ["--prefix=%s" % prefix,
+ "--with-hwloc=%s" % spec['hwloc'].prefix,
"--enable-shared",
"--enable-static"]