Added required arguments to get plumed to build with intelmpi
This commit is contained in:
parent
6641f42417
commit
13f636ec68
@ -60,12 +60,14 @@ def install(self, spec, prefix):
|
|||||||
# Construct list of optional modules
|
# Construct list of optional modules
|
||||||
module_opts=[]
|
module_opts=[]
|
||||||
module_opts.extend([
|
module_opts.extend([
|
||||||
'+crystallization' if '+crystallization' in spec else '-crystallization',
|
'+crystallization' if (
|
||||||
|
'+crystallization' in spec) else '-crystallization',
|
||||||
'+imd' if '+imd' in spec else '-imd',
|
'+imd' if '+imd' in spec else '-imd',
|
||||||
'+manyrestraints' if '+manyrestraints' in spec else '-manyrestraints'
|
'+manyrestraints' if (
|
||||||
|
'+manyrestraints' in spec) else '-manyrestraints'
|
||||||
])
|
])
|
||||||
|
|
||||||
# If we have specified any optional modules then add the argument ro
|
# If we have specified any optional modules then add the argument to
|
||||||
# enable or disable them.
|
# enable or disable them.
|
||||||
if module_opts:
|
if module_opts:
|
||||||
config_args.extend(["--enable-modules=%s" % "".join(module_opts)])
|
config_args.extend(["--enable-modules=%s" % "".join(module_opts)])
|
||||||
@ -80,10 +82,13 @@ def install(self, spec, prefix):
|
|||||||
"F77=%s" % self.spec['mpi'].mpif77
|
"F77=%s" % self.spec['mpi'].mpif77
|
||||||
])
|
])
|
||||||
|
|
||||||
# Add remaining variant flags.
|
# If the MPI dependency is provided by the intelmpi package then
|
||||||
# config_args.extend([
|
# the following additional argument is required to allow it to
|
||||||
# "--enable-mpi" if '+mpi' in spec else "--disable-mpi"
|
# build.
|
||||||
# ])
|
if spec.satisfies('^intelmpi'):
|
||||||
|
config_args.extend([
|
||||||
|
"STATIC_LIBS=-mt_mpi"
|
||||||
|
])
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
configure(*config_args)
|
configure(*config_args)
|
||||||
|
Loading…
Reference in New Issue
Block a user