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:
parent
60cffbb9d0
commit
1b0d2888bb
1 changed files with 10 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue