Made Legion Dependency on Gasnet Tarball Explicit (#26805)

Made legion dependency on a gasnet tarball explicit so as to take
advantage of spack mirrors for the purpose of deploying on machines with
firewalls
This commit is contained in:
Robert Pavel 2021-10-19 08:28:43 -06:00 committed by GitHub
parent 4fc8ed10cb
commit c66aa858c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,6 +74,14 @@ class Legion(CMakePackage):
description="The network communications/transport layer to use.",
multi=False)
# Add Gasnet tarball dependency in spack managed manner
# TODO: Provide less mutable tag instead of branch
resource(name='stanfordgasnet',
git='https://github.com/StanfordLegion/gasnet.git',
destination='stanfordgasnet',
branch='master',
when='network=gasnet')
# We default to automatically embedding a gasnet build. To override this
# point the package a pre-installed version of GASNet-Ex via the gasnet_root
# variant.
@ -204,7 +212,11 @@ def cmake_args(self):
gasnet_dir = spec.variants['gasnet_root'].value
options.append('-DGASNet_ROOT_DIR=%s' % gasnet_dir)
else:
gasnet_dir = join_path(self.stage.source_path,
"stanfordgasnet",
"gasnet")
options.append('-DLegion_EMBED_GASNet=ON')
options.append('-DLegion_EMBED_GASNet_LOCALSRC=%s' % gasnet_dir)
gasnet_conduit = spec.variants['conduit'].value
options.append('-DGASNet_CONDUIT=%s' % gasnet_conduit)