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
This commit is contained in:
parent
9a27dec8e8
commit
4f05fb4b3f
@ -25,7 +25,7 @@
|
|||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Gasnet(Package):
|
class Gasnet(AutotoolsPackage):
|
||||||
"""GASNet is a language-independent, low-level networking layer
|
"""GASNet is a language-independent, low-level networking layer
|
||||||
that provides network-independent, high-performance communication
|
that provides network-independent, high-performance communication
|
||||||
primitives tailored for implementing parallel global address space
|
primitives tailored for implementing parallel global address space
|
||||||
@ -35,26 +35,29 @@ class Gasnet(Package):
|
|||||||
homepage = "http://gasnet.lbl.gov"
|
homepage = "http://gasnet.lbl.gov"
|
||||||
url = "http://gasnet.lbl.gov/GASNet-1.24.0.tar.gz"
|
url = "http://gasnet.lbl.gov/GASNet-1.24.0.tar.gz"
|
||||||
|
|
||||||
|
version('1.28.0', 'b44446d951d3d8954aa1570e3556ba61')
|
||||||
version('1.24.0', 'c8afdf48381e8b5a7340bdb32ca0f41a')
|
version('1.24.0', 'c8afdf48381e8b5a7340bdb32ca0f41a')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
variant('ibv', default=False, description="Support InfiniBand")
|
||||||
# TODO: don't use paths with @ in them.
|
variant('mpi', default=False, description="Support MPI")
|
||||||
change_sed_delimiter('@', ';', 'configure')
|
|
||||||
|
|
||||||
configure(
|
depends_on('mpi', when='+mpi')
|
||||||
"--prefix=%s" % prefix,
|
|
||||||
|
def configure_args(self):
|
||||||
|
args = [
|
||||||
# TODO: factor IB suport out into architecture description.
|
# TODO: factor IB suport out into architecture description.
|
||||||
"--enable-ibv",
|
"--enable-ibv" if '+ibv' in self.spec else '--disable-ibv',
|
||||||
"--enable-udp",
|
"--enable-mpi" if '+mpi' in self.spec else '--disable-mpi',
|
||||||
"--disable-mpi",
|
|
||||||
"--enable-par",
|
"--enable-par",
|
||||||
|
"--enable-smp",
|
||||||
|
"--enable-udp",
|
||||||
"--enable-mpi-compat",
|
"--enable-mpi-compat",
|
||||||
|
"--enable-smp-safe",
|
||||||
"--enable-segment-fast",
|
"--enable-segment-fast",
|
||||||
"--disable-aligned-segments",
|
"--disable-aligned-segments",
|
||||||
# TODO: make option so Legion can request builds with/without this.
|
# TODO: make option so Legion can request builds with/without this.
|
||||||
# See the Legion webpage for details on when to/not to use.
|
# See the Legion webpage for details on when to/not to use.
|
||||||
"--disable-pshm",
|
"--disable-pshm",
|
||||||
"--with-segment-mmap-max=64MB")
|
"--with-segment-mmap-max=64MB",
|
||||||
|
]
|
||||||
make()
|
return args
|
||||||
make("install")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user