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
@ -35,23 +35,29 @@ class Xsbench(MakefilePackage):
|
|||||||
homepage = "https://github.com/ANL-CESAR/XSBench/"
|
homepage = "https://github.com/ANL-CESAR/XSBench/"
|
||||||
url = "https://github.com/ANL-CESAR/XSBench/archive/v13.tar.gz"
|
url = "https://github.com/ANL-CESAR/XSBench/archive/v13.tar.gz"
|
||||||
|
|
||||||
|
tags = ['proxy-app']
|
||||||
|
|
||||||
version('13', '72a92232d2f5777fb52f5ea4082aff37')
|
version('13', '72a92232d2f5777fb52f5ea4082aff37')
|
||||||
|
|
||||||
variant('mpi', default=False, description='Build with MPI support')
|
variant('mpi', default=False, description='Build with MPI support')
|
||||||
|
|
||||||
depends_on('mpi', when='+mpi')
|
depends_on('mpi', when='+mpi')
|
||||||
|
|
||||||
|
build_directory = 'src'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def build_targets(self):
|
def build_targets(self):
|
||||||
|
|
||||||
targets = [
|
targets = []
|
||||||
'--directory=src',
|
|
||||||
]
|
|
||||||
|
|
||||||
|
cflags = '-std=gnu99'
|
||||||
if '+mpi' in self.spec:
|
if '+mpi' in self.spec:
|
||||||
targets.append('MPI=yes')
|
|
||||||
targets.append('CC={0}'.format(self.spec['mpi'].mpicc))
|
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
|
return targets
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
|
Loading…
Reference in New Issue
Block a user