summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pavel <rspavel@lanl.gov>2021-10-19 08:28:43 -0600
committerGitHub <noreply@github.com>2021-10-19 16:28:43 +0200
commitc66aa858c2b8c1d168c625adb2203411e50f07c8 (patch)
tree197607c2d2442649e27bbd463a9c4288c9784dbb
parent4fc8ed10cb6d02603e46dd86a1d2426170673935 (diff)
downloadspack-c66aa858c2b8c1d168c625adb2203411e50f07c8.tar.gz
spack-c66aa858c2b8c1d168c625adb2203411e50f07c8.tar.bz2
spack-c66aa858c2b8c1d168c625adb2203411e50f07c8.tar.xz
spack-c66aa858c2b8c1d168c625adb2203411e50f07c8.zip
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
-rw-r--r--var/spack/repos/builtin/packages/legion/package.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/legion/package.py b/var/spack/repos/builtin/packages/legion/package.py
index f27568dab6..85373b53fb 100644
--- a/var/spack/repos/builtin/packages/legion/package.py
+++ b/var/spack/repos/builtin/packages/legion/package.py
@@ -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 @@ class Legion(CMakePackage):
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)