Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

climbfuji
Copy link
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/fv3atm#62 and ufs-community/ufs-weather-model#55

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

jswhit2 commented Feb 10, 2020

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

@pjpegion
Copy link
Collaborator

pjpegion commented Feb 10, 2020 via email

@climbfuji
Copy link
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
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