Closed
Description
What new functionality do you need?
ESMF-managed threading was added in #1371 for the ufs-weather-model.
A traditional threading option is also desired as some issues were reported while using ESMF-managed threading at higher resolutions (e.g. C1152).
An option to use either of those available threading options is desired.
What are the requirements for the new functionality?
- A configurable flag that allows one to choose between the two threading options when launching the ufs-weather-model forecast executable in the workflow.
Acceptance Criteria
Successful execution of the model in the two threading modes.
Suggest a solution (optional)
- Add a flag in config.fcst/config.efcs/config.ufs or elsewhere where it makes sense to toggle the threading options
- Choose the appropriate
ufs.configure
template. Note that traditional threading templates will need to be linked in the global-workflow from the ufs-weather-model, and if templates are not available in the ufs-weather-model, they will need to be added there first. - update the calculations of PETS for the components and total taking into consideration the toggle in 1.
- set
OMP_NUM_THREADS
when using traditional threading before calling the executable.