Skip to content

Add traditional threading option for UFSWM #2277

Closed
@aerorahul

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?

  1. 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)

  1. Add a flag in config.fcst/config.efcs/config.ufs or elsewhere where it makes sense to toggle the threading options
  2. 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.
  3. update the calculations of PETS for the components and total taking into consideration the toggle in 1.
  4. set OMP_NUM_THREADS when using traditional threading before calling the executable.

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions