From c66aa858c2b8c1d168c625adb2203411e50f07c8 Mon Sep 17 00:00:00 2001 From: Robert Pavel Date: Tue, 19 Oct 2021 08:28:43 -0600 Subject: [PATCH] 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 --- var/spack/repos/builtin/packages/legion/package.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 @@ 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)