-
Notifications
You must be signed in to change notification settings - Fork 18
sima0_11_001: Bring in gpuized RRTMGP #451
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
Merged
Merged
Changes from 118 commits
Commits
Show all changes
123 commits
Select commit
Hold shift + click to select a range
6b03299
sima updates to get rrtmgp lw to generate caps
1f19dd0
latest atmos_phys tag
8ac539c
update atmos_phys submodule
bc961a0
cleanup; update atmos_phys hash
b9bdd6e
update git-fleximod
2a58a1e
latest atmos phys hash
084b8a4
merge to head of development
0b817f3
lw answers match cam for 2 timesteps using radiation
peverwhee a694713
use output variables for physics check
peverwhee c2a33d7
fix unit tests
peverwhee 8b9df0a
update check_data to not error when variable is not found
peverwhee b4331de
merge in output variable checking
peverwhee 50e5c2f
Merge remote-tracking branch 'origin/check-out-variables' into rrtmgp-lw
peverwhee 2752030
update atmos phys submodule
peverwhee 586a05f
Add 'var_subset_check' helper routine, with initial 'both present' ch…
nusbaume d7b4bbe
Add missing subroutine arguments.
nusbaume 63a5cbb
Add check for correct 'start' size, along with new unit test.
nusbaume de58bea
Add missing 'count' entry to test.
nusbaume eaf9264
Add missing space to error message, a 'count' size check, and an asso…
nusbaume f01ec4d
Add check and test for ensuring that start elements are within range.
nusbaume 098f4a0
Add missing Fortran character format.
nusbaume bd07e62
Add 'alloc_dims' output variable to ensure output variable is allocat…
nusbaume bf91195
Remove un-needed dimension index from allocate call.
nusbaume bc91c13
Add bounds checking for 'count' optional variable.
nusbaume 58a4840
Fix syntax error.
nusbaume e9018c3
Add subsetting when shape(count) matches shape(var), including unit t…
nusbaume 61389fd
Fix typo in subroutine call.
nusbaume ee4a3e9
Fix 'do_subset' syntax error.
nusbaume 249f87a
Fix bad subroutine name.
nusbaume c47dbe6
Flip error message and error code check for subset read test.
nusbaume 5175ea3
Add debugging output.
nusbaume a45e9d2
Cleanup debug output and modify start/count element range checks.
nusbaume 53780e7
Add subsetting to 2-D integer interface, add unit test, fix bad unit …
nusbaume 41fcd3d
Add 'singe value' subset test, and fix bad error message.
nusbaume 640a440
remove extraneous sum calls.
nusbaume 5c48075
Move non-subsetting rank check to 'var_subset_check', and add additio…
nusbaume d6fc649
Remove use of 'count' intrinsic to avoid name collision.
nusbaume de647be
Fix bad syntax in error message.
nusbaume 3385d54
Add subsetting calls to all non-scalar get_var calls.
nusbaume 76fc32a
Fix syntax error.
nusbaume ee27eb3
Adjust 'var_ndims' for charactervariables.
nusbaume 0c85688
Remove extra space in expected error message.
nusbaume dbc7354
Change error message text, and add additional unit tests.
nusbaume ac6fce9
Fix use statements in pFUnit Fortran code.
nusbaume 6f184f2
Move count bounds checking outside of output var check, and fix test …
nusbaume 73b75a3
Comment out real var subsetting test.
nusbaume 59775cc
Fix bad subsetting test, and partially uncomment 1D real subset test.
nusbaume 5b331ba
Uncomment 'end subroutine' line.
nusbaume 6402882
Remove comma from expected error message, and try reading press_ref v…
nusbaume ef23f22
Try 1D real subset test again.
nusbaume e829e94
Add 'pio_get_var' subsetting to remaining multi-dim get_var interfaces.
nusbaume 2776f7c
Print out press_ref values and change order.
nusbaume 574e71e
Change write statement to see if that fixes build issue?
nusbaume 4add51e
Removed commented-out assert statement.
nusbaume dfa8143
Add back-in original 'assert' statement.
nusbaume 23f6459
Formally declare expected values in real 1D subset test.
nusbaume 72844d0
Add ability to reduce output variable dimensionality via subsetting. …
nusbaume a20f592
Make output variable 3D to see if that works.
nusbaume 4f91699
Remove variable dimension reduction functionality (it doesn't appear …
nusbaume c2ff44c
Add error if user tries to subset a scalar variable, along with a rel…
nusbaume 77d876d
Add character variable subsetting unit test.
nusbaume 1625101
Fix character size assert check in subsetting test.
nusbaume da268b0
Fix syntax error in subset test.
nusbaume 37f1dd5
Add debugging output.
nusbaume 9cee38d
Try subsetting with character array length provided.
nusbaume 1728712
Increase 'var_ndims' by one to avoid incorrect error.
nusbaume dc0e3dc
Fix unit test assert statements, and update remaining character get_v…
nusbaume ab49b90
Fix error message in unit test.
nusbaume 0e5fb36
Remove fork/branch from Github Actions workflow.
nusbaume f65ec49
Remove leftover debugging code.
nusbaume 44729bd
merge in pio subsetting
peverwhee 3e6eeaa
update to dev tag
peverwhee cc60fb5
Misc fix: 3-D input field read with dycore enabled; cam_in/cam_out fr…
jimmielin db335b5
Update cime_config/testdefs/testlist_cam.xml
jimmielin 573cf9a
Address review comments
jimmielin d347cf3
Updated to remove unused cam_in/cam_outs
jimmielin b572d80
Update git-fleximod to v1.0.2
nusbaume 5a32d0d
Update externals to match cam6_4_115.
nusbaume f367b49
Add debugging output to git-fleximod.
nusbaume 6cad15f
Print out git commands in fleximod.
nusbaume 3eaaf02
Remove debugging code.
nusbaume fcf380c
Update fleximod test and gitmodules file to match new CAM code/submod…
nusbaume 40cf4df
Add missed atmospheric_physics submodule update.
nusbaume 45328ea
Update ccs_config submodule.
nusbaume e340186
commit latest host side changes
peverwhee 5d404a9
merge in jesses externals updates
peverwhee f9d9539
read coszrs from file; add dycore name to runtime_obj
peverwhee c114fe0
merge in development branch
peverwhee e5384b1
fix merge; add pbuf out fields to registry to be checked
peverwhee 7e29457
update atmos phys hash
peverwhee b1993e9
fix runtime object setter; add rrtmgp snapshot test
peverwhee fa9acd0
remove redundant git-fleximod
peverwhee 3dd5cad
remove correct git-fleximod this time
peverwhee f182739
code cleanup
peverwhee a5b6dac
Merge remote-tracking branch 'ESCOMP/development' into rrtmgp-lw
peverwhee 92f7b76
remove final redundant git-fleximod files
peverwhee efd8964
Merge remote-tracking branch 'hplin/hplin/fixes_fadiab' into rrtmgp-lw
peverwhee c963e10
remove unused diagnostic field; add handling for parameters in registry
peverwhee 581148b
clean up registry
peverwhee 8d3c6c3
update submodule
peverwhee 83ac00e
add gpu test; mods to get nvhpc to run
peverwhee 7105e8c
no error when diffs found for gpu test
peverwhee 1b4a5bb
add missing initial values to registry; removed unused fields
peverwhee 99ec7a7
update atmos phys hash
peverwhee 5d95cbf
Merge remote-tracking branch 'ESCOMP/development' into rrtmgp-lw
peverwhee c1de147
remove unnecessary reordering
peverwhee 31c9290
remove code that is no longer necessary
peverwhee ff7da37
merge up; use latest atmos phys hash
peverwhee 28c7a56
move snow and graupel logicals to the registry
peverwhee 5900a8d
merge up
peverwhee 63da84a
bring in latest atmospheric physics rrtmgp mods
peverwhee c4dd819
add heating rate to registry; update atmospheric physics hash
peverwhee 514a460
Merge remote-tracking branch 'origin/rrtmgp-lw' into rrtmgp-gpu
peverwhee 5b24c6b
use gpuized atmospheric physics
peverwhee 56e7cd2
comment clarifying snapshots for gpu test
peverwhee 9797761
new atmospheric physics hash; update standard name and units
peverwhee bf176a0
merge to head; grab latest tags for ccs_config and atmos phys
peverwhee c8d128f
remove unnecessary initialization mark
peverwhee 8fbe9fb
Add function so that SIMA uses the correct hardware-dependent RRTMGP …
nusbaume f00de07
Add new OpenACC variable to fake case dictionary used for testing.
nusbaume bfa8aeb
Add new gpu_flag input variable to cam_autogen tests.
nusbaume 23a5af9
set min difference for gpu rrtmgp test
peverwhee 34dd50b
Merge remote-tracking branch 'ESCOMP/development' into rrtmgp-gpu
peverwhee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ccs_config
updated
12 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
cime_config/testdefs/testmods_dirs/cam/outfrq_rrtmgp_derecho_gpu/shell_commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ./xmlchange NTASKS=128 | ||
| ./xmlchange NTHRDS=1 | ||
| ./xmlchange ROOTPE='0' | ||
| ./xmlchange ROF_NCPL=`./xmlquery --value ATM_NCPL` | ||
| ./xmlchange GLC_NCPL=`./xmlquery --value ATM_NCPL` | ||
| ./xmlchange TIMER_DETAIL='6' | ||
| ./xmlchange TIMER_LEVEL='999' | ||
| ./xmlchange GPU_TYPE=a100 | ||
| ./xmlchange OPENACC_GPU_OFFLOAD=TRUE | ||
| ./xmlchange OVERSUBSCRIBE_GPU=TRUE | ||
| ./xmlchange NGPUS_PER_NODE=4 | ||
| ./xmlchange CAM_CONFIG_OPTS="--dyn none --physics-suites rrtmgp" | ||
| ./xmlchange RUN_STARTDATE=1979-01-01 |
25 changes: 25 additions & 0 deletions
25
cime_config/testdefs/testmods_dirs/cam/outfrq_rrtmgp_derecho_gpu/user_nl_cam
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| ! these are CPU FHISTC_LTso snapshots | ||
| ncdata = '/glade/campaign/cesm/community/amwg/sima_baselines/cam_sima_test_snapshots/cam_ne3pg3_fhistc_ltso_rrtmgp_derecho_gnu_before_c20251013.nc' | ||
| ncdata_check = '/glade/campaign/cesm/community/amwg/sima_baselines/cam_sima_test_snapshots/cam_ne3pg3_fhistc_ltso_rrtmgp_derecho_gnu_after_c20251013.nc' | ||
|
|
||
| ! tolerances for testing (currently commented out until a gpu snapshot is made) | ||
| !ncdata_check_err = .true. | ||
| !min_difference = 1e-15 | ||
|
|
||
| ! vertical levels in snapshot | ||
| pver = 58 | ||
|
|
||
| ! Do radiation on every timestep we're testing | ||
| irad_always=3 | ||
|
|
||
| ! diagnostic output | ||
| hist_output_frequency;h1: 1*nsteps | ||
| hist_precision;h1: REAL64 | ||
| hist_add_inst_fields;h1: HR | ||
| ! Cloud output | ||
| hist_add_inst_fields;h1: TOT_CLD_VISTAU,TOT_ICLD_VISTAU,ICE_ICLD_VISTAU,LIQ_ICLD_VISTAU | ||
| ! Longwave diagnostic output | ||
| hist_add_inst_fields;h1: QRL,QRLC,FLNT,FLNTC,FLUT,FLUTC,LWCF,FLN200,FLN200C,FLNR,FLNS,FLNSC,FLDS,FLDSC,FUL,FDL,FULC,FDLC | ||
| ! Shortwave diagnostic fields | ||
| hist_add_inst_fields;h1: SOLIN,QRS,QRSC,FSNT,FSNTC,FSNTOA,FSNTOAC,SWCF,FSUTOA,FSN200,FSN200C,FSNR,SOLL,SOLS,SOLLD,SOLSD | ||
| hist_add_inst_fields;h1: FSNS,FSNSC,FSDS,FSDSC,FUS,FDS,FUSC,FDSC | ||
5 changes: 5 additions & 0 deletions
5
cime_config/testdefs/testmods_dirs/cam/outfrq_rrtmgp_derecho_gpu/user_nl_cpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| ! Set fixed orbital parameters | ||
| orb_mode='fixed_parameters' | ||
| orb_eccen = 0. | ||
| orb_obliq = 0. | ||
| orb_mvelp = 0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ncar_ccpp
updated
16 files
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.