Fix osu-micro-benchmarks build (#5255)

* Fix osu-micro-benchmarks build

Changed hardcoded mpi wrapper names
Changed Package to AutotoolsPackage

* remove extra prefix
This commit is contained in:
Pramod S Kumbhar 2017-09-01 20:14:54 +02:00 committed by Adam J. Stewart
parent 5342ecf364
commit 2aed82c2c2

View file

@ -26,7 +26,7 @@
import sys import sys
class OsuMicroBenchmarks(Package): class OsuMicroBenchmarks(AutotoolsPackage):
"""The Ohio MicroBenchmark suite is a collection of independent MPI """The Ohio MicroBenchmark suite is a collection of independent MPI
message passing performance microbenchmarks developed and written at message passing performance microbenchmarks developed and written at
The Ohio State University. It includes traditional benchmarks and The Ohio State University. It includes traditional benchmarks and
@ -43,11 +43,11 @@ class OsuMicroBenchmarks(Package):
depends_on('mpi') depends_on('mpi')
depends_on('cuda', when='+cuda') depends_on('cuda', when='+cuda')
def install(self, spec, prefix): def configure_args(self):
spec = self.spec
config_args = [ config_args = [
'CC=%s' % spec['mpi'].prefix.bin + '/mpicc', 'CC=%s' % spec['mpi'].mpicc,
'CXX=%s' % spec['mpi'].prefix.bin + '/mpicxx', 'CXX=%s' % spec['mpi'].mpicxx
'--prefix=%s' % prefix
] ]
if '+cuda' in spec: if '+cuda' in spec:
@ -60,7 +60,4 @@ def install(self, spec, prefix):
if not sys.platform == 'darwin': if not sys.platform == 'darwin':
config_args.append('LDFLAGS=-lrt') config_args.append('LDFLAGS=-lrt')
configure(*config_args) return config_args
make()
make('install')