Package/xsbench (#4822)

* removed the tags as per comment in PR# 4749

* addressed above comments

* changed fortran compiler.

* added proxy application tags.

* added tags by removing them from description.

* addressed comments

* used join_path instead of path concat.

* added tags and other minor changes.

* removed tags from description.
This commit is contained in:
pkondamudi 2017-07-19 17:04:17 -05:00 committed by Adam J. Stewart
parent 60cffbb9d0
commit 1b0d2888bb

View file

@ -35,23 +35,29 @@ class Xsbench(MakefilePackage):
homepage = "https://github.com/ANL-CESAR/XSBench/"
url = "https://github.com/ANL-CESAR/XSBench/archive/v13.tar.gz"
tags = ['proxy-app']
version('13', '72a92232d2f5777fb52f5ea4082aff37')
variant('mpi', default=False, description='Build with MPI support')
depends_on('mpi', when='+mpi')
build_directory = 'src'
@property
def build_targets(self):
targets = [
'--directory=src',
]
targets = []
cflags = '-std=gnu99'
if '+mpi' in self.spec:
targets.append('MPI=yes')
targets.append('CC={0}'.format(self.spec['mpi'].mpicc))
cflags += ' ' + self.compiler.openmp_flag
targets.append('CFLAGS={0}'.format(cflags))
targets.append('LDFLAGS=-lm')
return targets
def install(self, spec, prefix):