Skip to content
Snippets Groups Projects
Commit 54bfa888 authored by Christoph Junghans's avatar Christoph Junghans Committed by Adam J. Stewart
Browse files

legion: add mpi interoperability and shared libs (#3959)

* legion: add mpi inoperability

* legion: make +mpi the default

* legion: add shared variant
parent dd5f4cb2
Branches
Tags
No related merge requests found
...@@ -47,9 +47,13 @@ class Legion(CMakePackage): ...@@ -47,9 +47,13 @@ class Legion(CMakePackage):
version('17.02.0', '31ac3004e2fb0996764362d2b6f6844a') version('17.02.0', '31ac3004e2fb0996764362d2b6f6844a')
variant('debug', default=False, description='Build debug version') 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("cmake@3.1:", type='build')
depends_on("gasnet") depends_on("gasnet", when='~mpi')
depends_on("gasnet+mpi", when='+mpi')
def build_type(self): def build_type(self):
spec = self.spec spec = self.spec
...@@ -59,4 +63,12 @@ def build_type(self): ...@@ -59,4 +63,12 @@ def build_type(self):
return 'Release' return 'Release'
def cmake_args(self): 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment