summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorpkondamudi <pkondamudi@users.noreply.github.com>2017-07-19 19:04:48 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2017-07-19 19:04:48 -0500
commit9df9a809a873805c013daf7851b6e9ef03794e70 (patch)
tree93de7698b76b1b8dabbb3c6094dcad9c29d70e7e /var
parentbdcd63ed70fee6300951a2af444e643837d3942f (diff)
downloadspack-9df9a809a873805c013daf7851b6e9ef03794e70.tar.gz
spack-9df9a809a873805c013daf7851b6e9ef03794e70.tar.bz2
spack-9df9a809a873805c013daf7851b6e9ef03794e70.tar.xz
spack-9df9a809a873805c013daf7851b6e9ef03794e70.zip
Add MPI support and tags to embs package (#4824)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ebms/package.py25
1 files changed, 24 insertions, 1 deletions
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'))