summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarson Woods <carsonwoods@users.noreply.github.com>2019-06-28 12:43:06 -0600
committerPeter Scheibel <scheibel1@llnl.gov>2019-06-28 11:43:06 -0700
commit5873beb83f669ee61022e352498cfeaf427ce56d (patch)
treeceb0faa79e992d4496c9bb003bc086aa346146c3
parent5e9437866bb28753b550dd3030557f1a6e623ed3 (diff)
downloadspack-5873beb83f669ee61022e352498cfeaf427ce56d.tar.gz
spack-5873beb83f669ee61022e352498cfeaf427ce56d.tar.bz2
spack-5873beb83f669ee61022e352498cfeaf427ce56d.tar.xz
spack-5873beb83f669ee61022e352498cfeaf427ce56d.zip
qthreads package: make hwloc dependency optional and add version 1.14 (#11780)
-rw-r--r--var/spack/repos/builtin/packages/qthreads/package.py20
1 files changed, 15 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/qthreads/package.py b/var/spack/repos/builtin/packages/qthreads/package.py
index 1eb3dd9689..1b29f587f5 100644
--- a/var/spack/repos/builtin/packages/qthreads/package.py
+++ b/var/spack/repos/builtin/packages/qthreads/package.py
@@ -20,6 +20,7 @@ class Qthreads(AutotoolsPackage):
homepage = "http://www.cs.sandia.gov/qthreads/"
url = "https://github.com/Qthreads/qthreads/releases/download/1.10/qthread-1.10.tar.bz2"
+ version("1.14", "3e6eb58baf78dc961b19a37b2dc4f9a5")
version("1.12", "c857d175f8135eaa669f3f8fa0fb0c09")
version("1.11", "68b5f9a41cfd1a2ac112cc4db0612326")
version("1.10", "d1cf3cf3f30586921359f7840171e551")
@@ -27,12 +28,21 @@ class Qthreads(AutotoolsPackage):
patch("restrict.patch", when="@:1.10")
patch("trap.patch", when="@:1.10")
- depends_on("hwloc")
+ variant(
+ 'hwloc',
+ default=True,
+ description='hwloc support'
+ )
+
+ depends_on("hwloc@1.0:1.99", when="+hwloc")
def configure_args(self):
spec = self.spec
- args = [
- "--enable-guard-pages",
- "--with-topology=hwloc",
- "--with-hwloc=%s" % spec["hwloc"].prefix]
+ if "+hwloc" in self.spec:
+ args = [
+ "--enable-guard-pages",
+ "--with-topology=hwloc",
+ "--with-hwloc=%s" % spec["hwloc"].prefix]
+ else:
+ args = ["--with-topology=no"]
return args