@@ -0,0 +1,1360 @@
+from spack import *%0A%0Aclass Gasnet(Package):%0A    %22%22%22GASNet is a language-independent, low-level networking layer%0A       that provides network-independent, high-performance communication%0A       primitives tailored for implementing parallel global address space%0A       SPMD languages and libraries such as UPC, Co-Array Fortran, SHMEM,%0A       Cray Chapel, and Titanium.%0A    %22%22%22%0A    homepage = %22http://gasnet.lbl.gov%22%0A    url      = %22http://gasnet.lbl.gov/GASNet-1.24.0.tar.gz%22%0A%0A    version('1.24.0', 'c8afdf48381e8b5a7340bdb32ca0f41a')%0A%0A%0A    def install(self, spec, prefix):%0A        # TODO: don't use paths with @ in them.%0A        change_sed_delimiter('@', ';', 'configure')%0A%0A        configure(%22--prefix=%25s%22 %25 prefix,%0A                  # TODO: factor IB suport out into architecture description.%0A                  %22--enable-ibv%22,%0A                  %22--enable-udp%22,%0A                  %22--disable-mpi%22,%0A                  %22--enable-par%22,%0A                  %22--enable-mpi-compat%22,%0A                  %22--enable-segment-fast%22,%0A                  %22--disable-aligned-segments%22,%0A                  # TODO: make an option so that Legion can request builds with/without this.%0A                  # See the Legion webpage for details on when to/not to use.%0A                  %22--disable-pshm%22,%0A                  %22--with-segment-mmap-max=64MB%22)%0A%0A        make()%0A        make(%22install%22)%0A

Add experimental gasnet package for legion.