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

Fix model slowness when using threading #258

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Mar 12, 2021

Description

This PR fixes the model slowness that we started to see after PR #249 was merged. The reason are missing OpenMP dependencies in ccpp/data/CMakeLists.txt and ccpp/driver/CMakeLists.txt.

These dependencies were missing since the two folders ccpp/data and ccpp/driver were created. However, OpenMP was added implicitly through a dependency on target gfsphysics, which was removed in PR #249.

Issue(s) addressed

ufs-weather-model issue #474

Testing

Tested manually with Intel and GNU on Cheyenne and Hera for the regression test fv3_ccpp_2threads for 240h long integration times. With these changes the performance of the pre-#249 code is regained (and at the same time the memory footprint is reduced due to the changes in #249).

Dependencies

n/a

@climbfuji climbfuji marked this pull request as ready for review March 12, 2021 22:18
@junwang-noaa junwang-noaa merged commit 579abd4 into NOAA-EMC:develop Mar 16, 2021
@aerorahul
Copy link
Contributor

were we not just still having a discussion on the PUBLIC and PRIVATE nature of OpenMP linking in another thread?

@climbfuji
Copy link
Collaborator Author

climbfuji commented Mar 16, 2021 via email

@junwang-noaa
Copy link
Collaborator

junwang-noaa commented Mar 16, 2021 via email

AnningCheng-NOAA added a commit to AnningCheng-NOAA/fv3atm that referenced this pull request Mar 16, 2021
* upstream/develop:
  Add missing OpenMP dependency to ccpp/data/CMakeLists.txt and ccpp/driver/CMakeLists.txt (NOAA-EMC#258)
  Regional inlinepost (NOAA-EMC#229)
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.

None yet

4 participants