Improve scorep package with different compilers and mpi providers (#5386)

* Add --with-mpi=spec['mpi'].name at configure step to avoid error when finding 2 MPI implementations

* Improve scorep package with different compilers and mpi providers
This commit is contained in:
Pramod S Kumbhar 2017-09-18 22:35:42 +02:00 committed by becker33
parent 2f269c3919
commit 832791a2bb

View file

@ -84,14 +84,28 @@ def configure_args(self):
"--with-papi-header=%s" % spec['papi'].prefix.include, "--with-papi-header=%s" % spec['papi'].prefix.include,
"--with-papi-lib=%s" % spec['papi'].prefix.lib, "--with-papi-lib=%s" % spec['papi'].prefix.lib,
"--with-pdt=%s" % spec['pdt'].prefix.bin, "--with-pdt=%s" % spec['pdt'].prefix.bin,
"--enable-shared", "--enable-shared"]
]
cname = spec.compiler.name
config_args.append('--with-nocross-compiler-suite={0}'.format(cname))
if spec.satisfies('^intel-mpi'):
config_args.append('--with-mpi=intel3')
elif spec.satisfies('^mpich') or spec.satisfies('^mvapich2'):
config_args.append('--with-mpi=mpich3')
elif spec.satisfies('^openmpi'):
config_args.append('--with-mpi=openmpi')
if '~shmem' in spec: if '~shmem' in spec:
config_args.append("--without-shmem") config_args.append("--without-shmem")
config_args.extend([ config_args.extend([
'CFLAGS={0}'.format(self.compiler.pic_flag), 'CFLAGS={0}'.format(self.compiler.pic_flag),
'CXXFLAGS={0}'.format(self.compiler.pic_flag) 'CXXFLAGS={0}'.format(self.compiler.pic_flag),
'MPICC={0}'.format(spec['mpi'].mpicc),
'MPICXX={0}'.format(spec['mpi'].mpicxx),
'MPIF77={0}'.format(spec['mpi'].mpif77),
'MPIFC={0}'.format(spec['mpi'].mpifc)
]) ])
return config_args return config_args