diff options
author | Christoph Junghans <christoph.junghans@gmail.com> | 2017-04-27 13:10:30 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-04-27 15:10:30 -0500 |
commit | 6f62a4fe36f5cb24f947903a8e96760b10df0258 (patch) | |
tree | 4e69bcf2a6b9f5dc471f34f97dc14b3716806596 /var/spack/repos/builtin/packages/flecsi/package.py | |
parent | 5d6a488c69b8f10fd9d180ab679d857821c36d04 (diff) | |
download | spack-6f62a4fe36f5cb24f947903a8e96760b10df0258.tar.gz spack-6f62a4fe36f5cb24f947903a8e96760b10df0258.tar.bz2 spack-6f62a4fe36f5cb24f947903a8e96760b10df0258.tar.xz spack-6f62a4fe36f5cb24f947903a8e96760b10df0258.zip |
flecsi: add mpi interoperability (#4000)
Diffstat (limited to 'var/spack/repos/builtin/packages/flecsi/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/flecsi/package.py | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/flecsi/package.py b/var/spack/repos/builtin/packages/flecsi/package.py index 8dea473d03..947719508c 100644 --- a/var/spack/repos/builtin/packages/flecsi/package.py +++ b/var/spack/repos/builtin/packages/flecsi/package.py @@ -39,19 +39,21 @@ class Flecsi(CMakePackage): homepage = "http://flecsi.lanl.gov/" url = "https://github.com/laristra/flecsi/tarball/v1.0" - version('develop', git='https://github.com/laristra/flecsi', branch='master', submodules=True) + version('develop', git='https://github.com/laristra/flecsi', branch='master', submodules=False) variant('debug', default=False, description='Build debug version') + variant('mpi', default=True, + description='Build on top of mpi conduit for mpi inoperability') depends_on("cmake@3.1:", type='build') - depends_on("legion") + depends_on("legion+shared", when='~mpi') + depends_on("legion+shared+mpi", when='+mpi') - # drop when #3779 has been fixed + # drop when #3958 has been merged def do_fetch(self, mirror_only=True): super(Flecsi, self).do_fetch(mirror_only) git = which("git") - git('-C', 'flecsi', 'submodule', 'update', '--init', '--recursive', - '--depth=1') + git('-C', 'flecsi', 'submodule', 'update', '--init', '--recursive') def build_type(self): spec = self.spec @@ -61,4 +63,12 @@ class Flecsi(CMakePackage): return 'Release' def cmake_args(self): - return ['-DENABLE_UNIT_TESTS=ON'] + options = ['-DENABLE_UNIT_TESTS=ON'] + + if '+mpi' in self.spec: + options.extend([ + '-DENABLE_MPI=ON', + '-DFLECSI_RUNTIME_MODEL=mpilegion' + ]) + + return options |