summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorChristoph Junghans <christoph.junghans@gmail.com>2017-04-25 10:06:05 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2017-04-25 12:06:05 -0500
commit54bfa888b96cb40c7be64c4b0f2e2459a543949a (patch)
treefae62adcc6a50ce38e5c5ce7ed6d0eeffdf635b4 /var
parentdd5f4cb251f77a4d4122a4eb26f44beb68bebc92 (diff)
downloadspack-54bfa888b96cb40c7be64c4b0f2e2459a543949a.tar.gz
spack-54bfa888b96cb40c7be64c4b0f2e2459a543949a.tar.bz2
spack-54bfa888b96cb40c7be64c4b0f2e2459a543949a.tar.xz
spack-54bfa888b96cb40c7be64c4b0f2e2459a543949a.zip
legion: add mpi interoperability and shared libs (#3959)
* legion: add mpi inoperability * legion: make +mpi the default * legion: add shared variant
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/legion/package.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/legion/package.py b/var/spack/repos/builtin/packages/legion/package.py
index ddfa8a8b94..2d93ee0e3a 100644
--- a/var/spack/repos/builtin/packages/legion/package.py
+++ b/var/spack/repos/builtin/packages/legion/package.py
@@ -47,9 +47,13 @@ class Legion(CMakePackage):
version('17.02.0', '31ac3004e2fb0996764362d2b6f6844a')
variant('debug', default=False, description='Build debug version')
+ variant('mpi', default=True,
+ description='Build on top of mpi conduit for mpi inoperability')
+ variant('shared', default=True, description='Build shared libraries')
depends_on("cmake@3.1:", type='build')
- depends_on("gasnet")
+ depends_on("gasnet", when='~mpi')
+ depends_on("gasnet+mpi", when='+mpi')
def build_type(self):
spec = self.spec
@@ -59,4 +63,12 @@ class Legion(CMakePackage):
return 'Release'
def cmake_args(self):
- return ['-DLegion_USE_GASNet=ON', '-DLegion_BUILD_EXAMPLES=ON']
+ options = [
+ '-DLegion_USE_GASNet=ON',
+ '-DLegion_BUILD_EXAMPLES=ON',
+ '-DBUILD_SHARED_LIBS=%s' % ('+shared' in spec)]
+
+ if '+mpi' in self.spec:
+ options.append('-DGASNet_CONDUIT=mpi')
+
+ return options