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:
parent
5342ecf364
commit
2aed82c2c2
1 changed files with 6 additions and 9 deletions
|
@ -26,7 +26,7 @@
|
|||
import sys
|
||||
|
||||
|
||||
class OsuMicroBenchmarks(Package):
|
||||
class OsuMicroBenchmarks(AutotoolsPackage):
|
||||
"""The Ohio MicroBenchmark suite is a collection of independent MPI
|
||||
message passing performance microbenchmarks developed and written at
|
||||
The Ohio State University. It includes traditional benchmarks and
|
||||
|
@ -43,11 +43,11 @@ class OsuMicroBenchmarks(Package):
|
|||
depends_on('mpi')
|
||||
depends_on('cuda', when='+cuda')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
def configure_args(self):
|
||||
spec = self.spec
|
||||
config_args = [
|
||||
'CC=%s' % spec['mpi'].prefix.bin + '/mpicc',
|
||||
'CXX=%s' % spec['mpi'].prefix.bin + '/mpicxx',
|
||||
'--prefix=%s' % prefix
|
||||
'CC=%s' % spec['mpi'].mpicc,
|
||||
'CXX=%s' % spec['mpi'].mpicxx
|
||||
]
|
||||
|
||||
if '+cuda' in spec:
|
||||
|
@ -60,7 +60,4 @@ def install(self, spec, prefix):
|
|||
if not sys.platform == 'darwin':
|
||||
config_args.append('LDFLAGS=-lrt')
|
||||
|
||||
configure(*config_args)
|
||||
|
||||
make()
|
||||
make('install')
|
||||
return config_args
|
||||
|
|
Loading…
Reference in a new issue