Skip to content

Fix model slowness when using threading#258

Merged
junwang-noaa merged 2 commits into
NOAA-EMC:developfrom
climbfuji:openmp_bugfix_ccppdata_ccppdriver_20210312
Mar 16, 2021
Merged

Fix model slowness when using threading#258
junwang-noaa merged 2 commits into
NOAA-EMC:developfrom
climbfuji:openmp_bugfix_ccppdata_ccppdriver_20210312

Conversation

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

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

@climbfuji
Copy link
Copy Markdown
Collaborator Author

climbfuji commented Mar 16, 2021 via email

@junwang-noaa
Copy link
Copy Markdown
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.

4 participants