From 9df9a809a873805c013daf7851b6e9ef03794e70 Mon Sep 17 00:00:00 2001 From: pkondamudi Date: Wed, 19 Jul 2017 19:04:48 -0500 Subject: Add MPI support and tags to embs package (#4824) --- var/spack/repos/builtin/packages/ebms/package.py | 25 +++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/ebms/package.py b/var/spack/repos/builtin/packages/ebms/package.py index 2e80572bd0..db3970814f 100644 --- a/var/spack/repos/builtin/packages/ebms/package.py +++ b/var/spack/repos/builtin/packages/ebms/package.py @@ -33,14 +33,37 @@ class Ebms(MakefilePackage): described in [1], where only one process in a compute node is used, and the compute nodes are divided into memory nodes and tracking nodes. Memory nodes do not participate in particle - tracking. Obviously, there is a lot of resource waste in this design.""" + tracking. Obviously, there is a lot of resource waste in this design. + """ homepage = "https://github.com/ANL-CESAR/EBMS" url = "https://github.com/ANL-CESAR/EBMS/archive/master.tar.gz" version('develop', git='https://github.com/ANL-CESAR/EBMS.git') + variant('mpi', default=True, description='Build with MPI support') + + depends_on('mpi', when='+mpi') + + tags = ['proxy-app'] + + @property + def build_targets(self): + + targets = [] + + cflags = '-g -O3 -std=gnu99' + + if '+mpi' in self.spec: + targets.append('CC={0}'.format(self.spec['mpi'].mpicc)) + + targets.append('CFLAGS={0}'.format(cflags)) + + return targets + def install(self, spec, prefix): mkdir(prefix.bin) install('ebmc-iallgather', prefix.bin) install('ebmc-rget', prefix.bin) + install_tree('run', join_path(prefix, 'run')) + install_tree('inputs', join_path(prefix, 'inputs')) -- cgit v1.2.3-70-g09d2