ESMCI / ESMCI/cime

Set mpirun to None when a single MPI task is being used (similar to handling of mpi-serial)

Open
#4,619 6 comments 0 reactions 0 assignees View on GitHub
Low Priority Responsibility: CESM Stale tp: CIMElib ty: Discussion
Dominant language
Python
Stars
174
Forks
225
Avg merge
1d 16h
Merged PRs (30d)
14

Description

mpi-serial used to be required for building serially. It no longer is for modern MPI libraries. One of the benefits of mpi-serial is that it removes the complexity of having to use a mpirun command and options which is both different on different machines, adds complexity, makes it harder to port to a machine for a serial case, and often means you can't run a simple case on the command line.

There is special handling in CIME for mpi-serial that allows mpirun to be None. For this I think similar logic can be used to set it to None, in env_mach_specific.py in _find_best_mpirun_match.

The other way to handle this would be to add a setting for NTASKS==1 to config_machine.xml for the specific machines we want to do this for.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.