Skip to content

release/public-v1: partial fix to threading issue#13

Merged
pjpegion merged 1 commit into
NOAA-PSL:release/public-v1from
climbfuji:threading_issue_stochastic_physics
Feb 10, 2020
Merged

release/public-v1: partial fix to threading issue#13
pjpegion merged 1 commit into
NOAA-PSL:release/public-v1from
climbfuji:threading_issue_stochastic_physics

Conversation

@climbfuji
Copy link
Copy Markdown
Collaborator

@climbfuji climbfuji commented Feb 10, 2020

This PR

  • removes the unused file num_parthds_stochy.f, and
  • modifies the OpenMP threaded regions to use the number of OpenMP threads provided from the calling model at most

This PR is required for NOAA-EMC/ufsatm#62 and ufs-community/ufs-weather-model#55

…ber of OpenMP threads provided from the calling model
@jswhit2
Copy link
Copy Markdown

jswhit2 commented Feb 10, 2020

Shouldn't this be merged into develop also? Seems like a bug.

@pjpegion
Copy link
Copy Markdown
Collaborator

pjpegion commented Feb 10, 2020 via email

@climbfuji
Copy link
Copy Markdown
Collaborator Author

Yes, something similar should be done for the develop, but:

  • removing file num_parthds_stochy.f also requires changes in fv3atm develop (which you need to coordinate with EMC)
  • this is not the end of the story, the current PR just allows you to set the number of threads to 1 when calling the stochastic_physics run routine - it does not solve the threading deadlock that is somewhere in the code

I would only merge this into the UFS public release and create an issue to fix the code entirely in develop.

@pjpegion
Copy link
Copy Markdown
Collaborator

Changes look good, since the regression tests also pass (stochastic physics w/ threading is not tested) I will also merge into psd/develop, but not master.

@pjpegion pjpegion closed this Feb 10, 2020
@pjpegion pjpegion reopened this Feb 10, 2020
@pjpegion pjpegion merged commit c4c1a29 into NOAA-PSL:release/public-v1 Feb 10, 2020
pjpegion added a commit that referenced this pull request Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants