summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2017-03-16 19:12:25 -0400
committerAdam J. Stewart <ajstewart426@gmail.com>2017-03-16 18:12:25 -0500
commit4f05fb4b3f236a4ff551b279c5f46a6d3c20f8e3 (patch)
tree4923eb1cc0d329889c4d2143618ac61cd2f19208 /var
parent9a27dec8e878debe81bd4ab08dfcf8964c4e9e4a (diff)
downloadspack-4f05fb4b3f236a4ff551b279c5f46a6d3c20f8e3.tar.gz
spack-4f05fb4b3f236a4ff551b279c5f46a6d3c20f8e3.tar.bz2
spack-4f05fb4b3f236a4ff551b279c5f46a6d3c20f8e3.tar.xz
spack-4f05fb4b3f236a4ff551b279c5f46a6d3c20f8e3.zip
gasnet: Convert to AutotoolsPackage, update (#3455)
* gasnet: Convert to AutotoolsPackage, update - convert to AutotoolsPackage - add new version 1.28.0 - create variants for IB and MPI support * gasnet: Don’t specify prefix explicitly * gasnet: Add missing variant descriptions * gasnet: Correct syntax error
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gasnet/package.py29
1 files changed, 16 insertions, 13 deletions
diff --git a/var/spack/repos/builtin/packages/gasnet/package.py b/var/spack/repos/builtin/packages/gasnet/package.py
index 12ecd9fd6f..2cf632fe4d 100644
--- a/var/spack/repos/builtin/packages/gasnet/package.py
+++ b/var/spack/repos/builtin/packages/gasnet/package.py
@@ -25,7 +25,7 @@
from spack import *
-class Gasnet(Package):
+class Gasnet(AutotoolsPackage):
"""GASNet is a language-independent, low-level networking layer
that provides network-independent, high-performance communication
primitives tailored for implementing parallel global address space
@@ -35,26 +35,29 @@ class Gasnet(Package):
homepage = "http://gasnet.lbl.gov"
url = "http://gasnet.lbl.gov/GASNet-1.24.0.tar.gz"
+ version('1.28.0', 'b44446d951d3d8954aa1570e3556ba61')
version('1.24.0', 'c8afdf48381e8b5a7340bdb32ca0f41a')
- def install(self, spec, prefix):
- # TODO: don't use paths with @ in them.
- change_sed_delimiter('@', ';', 'configure')
+ variant('ibv', default=False, description="Support InfiniBand")
+ variant('mpi', default=False, description="Support MPI")
- configure(
- "--prefix=%s" % prefix,
+ depends_on('mpi', when='+mpi')
+
+ def configure_args(self):
+ args = [
# TODO: factor IB suport out into architecture description.
- "--enable-ibv",
- "--enable-udp",
- "--disable-mpi",
+ "--enable-ibv" if '+ibv' in self.spec else '--disable-ibv',
+ "--enable-mpi" if '+mpi' in self.spec else '--disable-mpi',
"--enable-par",
+ "--enable-smp",
+ "--enable-udp",
"--enable-mpi-compat",
+ "--enable-smp-safe",
"--enable-segment-fast",
"--disable-aligned-segments",
# TODO: make option so Legion can request builds with/without this.
# See the Legion webpage for details on when to/not to use.
"--disable-pshm",
- "--with-segment-mmap-max=64MB")
-
- make()
- make("install")
+ "--with-segment-mmap-max=64MB",
+ ]
+ return args