Addapting the mvapich2@2.1: configure options for slurm
This commit is contained in:
parent
1eed2ee985
commit
0451c8e55f
@ -124,10 +124,19 @@ def set_process_manager(self, spec, configure_args):
|
|||||||
raise RuntimeError(" %s : 'slurm' cannot be activated together with other process managers" % self.name)
|
raise RuntimeError(" %s : 'slurm' cannot be activated together with other process managers" % self.name)
|
||||||
|
|
||||||
process_manager_options = []
|
process_manager_options = []
|
||||||
|
# See: http://slurm.schedmd.com/mpi_guide.html#mvapich2
|
||||||
if self.enabled(Mvapich2.SLURM) in spec:
|
if self.enabled(Mvapich2.SLURM) in spec:
|
||||||
|
if self.version > Version('2.0'):
|
||||||
process_manager_options = [
|
process_manager_options = [
|
||||||
|
"--with-pmi=pmi2",
|
||||||
"--with-pm=slurm"
|
"--with-pm=slurm"
|
||||||
]
|
]
|
||||||
|
else:
|
||||||
|
process_manager_options = [
|
||||||
|
"--with-pmi=slurm",
|
||||||
|
"--with-pm=no"
|
||||||
|
]
|
||||||
|
|
||||||
elif has_slurm_incompatible_variants:
|
elif has_slurm_incompatible_variants:
|
||||||
pms = []
|
pms = []
|
||||||
# The variant name is equal to the process manager name in the configuration options
|
# The variant name is equal to the process manager name in the configuration options
|
||||||
@ -164,6 +173,11 @@ def set_network_type(self, spec, configure_args):
|
|||||||
|
|
||||||
configure_args.extend(network_options)
|
configure_args.extend(network_options)
|
||||||
|
|
||||||
|
def setup_environment(self, spack_env, run_env):
|
||||||
|
if self.enabled(Mvapich2.SLURM) in self.spec and \
|
||||||
|
self.version > Version('2.0'):
|
||||||
|
run_env.set('SLURM_MPI_TYPE', 'pmi2')
|
||||||
|
|
||||||
def setup_dependent_environment(self, spack_env, run_env, extension_spec):
|
def setup_dependent_environment(self, spack_env, run_env, extension_spec):
|
||||||
spack_env.set('MPICH_CC', spack_cc)
|
spack_env.set('MPICH_CC', spack_cc)
|
||||||
spack_env.set('MPICH_CXX', spack_cxx)
|
spack_env.set('MPICH_CXX', spack_cxx)
|
||||||
|
Loading…
Reference in New Issue
Block a user