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

Use threading to speed up MERRA2 aerosol interpolation and NoahMP initialization #605

Merged
merged 6 commits into from
Apr 15, 2021

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Apr 2, 2021

Description

This PR speeds up the merra2 aerosol interpolation and Noah MP initialization using threading in GFS_phys_time_vary.fv3.F90.

Tests conducted:

  • manual tests using a C768L127 configuration (from @AnningCheng-NOAA) should similar speed with one OpenMP thread, and a speedup of a factor of 2+/- for the call to aerinterpol when using 4 OpenMP threads.
  • for short, lower-resolution tests such as the C96 regression tests, I don't see any difference in performance regardless of the number of threads
  • for all tests, results are bit-for-bit identical between the existing code and the new code, regardless of the number of threads

Fixes #608

Testing

See ufs-community/ufs-weather-model#507

Dependencies

#605
NOAA-EMC/fv3atm#268
ufs-community/ufs-weather-model#507

@climbfuji climbfuji changed the title WORK IN PROGRESS - Threading aerosol interp noahmp init Use threading to speed up MERRA2 aerosol interpolation and NoahMP initialization Apr 2, 2021
@climbfuji climbfuji marked this pull request as ready for review April 2, 2021 16:27
@climbfuji
Copy link
Collaborator Author

@AnningCheng-NOAA FYI

@AnningCheng-NOAA
Copy link
Collaborator

AnningCheng-NOAA commented Apr 2, 2021 via email

Copy link
Collaborator

@barlage barlage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes related to Noah-MP look fine to me.

@AnningCheng-NOAA
Copy link
Collaborator

AnningCheng-NOAA commented Apr 8, 2021 via email

@climbfuji
Copy link
Collaborator Author

HI, Dom: I issue the following command to clone the trunk, but get " fatal: Needed a single revision Unable to find current origin/master revision in submodule path 'icepack' " git clone --recursive https://github.com/ufs-community/ufs-weather-model cd ufs-weather-model git submodule update --init --recursive --remote The compilation is also not passed by using "compile.sh orion.intel "CCPP=Y 32BIT=Y SUITES=FV3_GFS_v15,FV3_GFS_v16beta" 2 YES NO". /work/noaa/global/acheng/ufs-weather-model/tests/build_fv3_2/CMakeFiles/CMakeOutput.log, something wrong with the Cmake. Do I miss something? Anning On Fri, Apr 2, 2021 at 12:44 PM Anning Cheng - NOAA Affiliate < @.***> wrote:

Anning, this has nothing to do with this PR, since you are not even checking out this code. The compile command has changed, please look inside rt.sh for the updated syntax.

@AnningCheng-NOAA
Copy link
Collaborator

AnningCheng-NOAA commented Apr 8, 2021 via email

@climbfuji
Copy link
Collaborator Author

climbfuji commented Apr 8, 2021 via email

@climbfuji climbfuji requested a review from XiaSun-Atmos April 14, 2021 13:00
Copy link
Contributor

@llpcarson llpcarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, approved

climbfuji added a commit that referenced this pull request Apr 15, 2021
Wrapper PR for #596, #609, #605: zorl interstitial, ocn -> wat, merra2 threading
@climbfuji climbfuji merged commit e46fe37 into NCAR:master Apr 15, 2021
@climbfuji climbfuji deleted the threading_aerosol_interp_noahmp_init branch June 27, 2022 03:25
HelinWei-NOAA pushed a commit to HelinWei-NOAA/ccpp-physics that referenced this pull request Feb 26, 2023
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.

Speed up MERRA2 aerosol interpolation using threading
6 participants