Skip to content

Commit 6eb3046

Browse files
authored
Merge pull request #1226 from sjsprecious/fix_broken_gpu_tests
cam6_4_064: Fix broken GPU tests for CLUBB code
2 parents b90429e + cbdaefd commit 6eb3046

File tree

4 files changed

+100
-8
lines changed

4 files changed

+100
-8
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ fxDONOTUSEurl = https://github.com/ESCOMP/mizuRoute
144144
[submodule "ccs_config"]
145145
path = ccs_config
146146
url = https://github.com/ESMCI/ccs_config_cesm.git
147-
fxtag = ccs_config_cesm1.0.8
147+
fxtag = ccs_config_cesm1.0.21
148148
fxrequired = ToplevelRequired
149149
fxDONOTUSEurl = https://github.com/ESMCI/ccs_config_cesm.git
150150

doc/ChangeLog

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,96 @@
1+
===============================================================
2+
3+
Tag name: cam6_4_064
4+
Originator(s): sjsprecious, huebleruwm
5+
Date: Feb 10, 2025
6+
One-line Summary: Fix broken GPU tests for CLUBB code
7+
Github PR URL: https://github.com/ESCOMP/CAM/pull/1226
8+
9+
Purpose of changes (include the issue number and title text for each relevant
10+
GitHub issue):
11+
12+
This PR fixes the broken ERS tests due to the recent GPU changes of CLUBB code
13+
(PR #1175).
14+
15+
Note that this PR need a new ccs_config tag from ESMCI/ccs_config_cesm#204 to
16+
complete this PR.
17+
18+
Closes #1220 - GPU test fails restart comparison
19+
20+
Describe any changes made to build system: N/A
21+
22+
Describe any changes made to the namelist: N/A
23+
24+
List any changes to the defaults for the boundary datasets: N/A
25+
26+
Describe any substantial timing or memory changes: N/A
27+
28+
Code reviewed by: nusbaume
29+
30+
List all files eliminated: N/A
131

32+
List all files added and what they do: N/A
33+
34+
List all existing files that have been modified, and describe the changes:
35+
36+
M .gitmodules
37+
- Update ccs_config submodule to ccs_config_cesm1.0.21 (needed for test fix)
38+
39+
M src/physics/cam/clubb_intr.F90
40+
- Move variables from OpenACC create call to copy call to fix restart test.
41+
42+
If there were any failures reported from running test_driver.sh on any test
43+
platform, and checkin with these failures has been OK'd by the gatekeeper,
44+
then copy the lines from the td.*.status files for the failed tests to the
45+
appropriate machine below. All failed tests must be justified.
46+
47+
derecho/intel/aux_cam:
48+
49+
ERP_Ln9.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq9s (Overall: FAIL)
50+
SMS_Ld1.f09_f09_mg17.FCHIST_GC.derecho_intel.cam-outfrq1d (Overall: DIFF)
51+
- pre-existing failure due to HEMCO not having reproducible results (issues #1018 and #856)
52+
53+
SMS_D_Ln9.f19_f19_mg17.FXHIST.derecho_intel.cam-outfrq9s_amie (Overall: FAIL)
54+
SMS_D_Ln9_P1280x1.ne0CONUSne30x8_ne0CONUSne30x8_mt12.FCHIST.derecho_intel.cam-outfrq9s (Overall: FAIL)
55+
- pre-existing failures due to build-namelist error requiring CLM/CTSM external update
56+
57+
SMS_D_Ln9_P1280x1.ne30pg3_ne30pg3_mg17.FHISTC_MTt1s.derecho_intel.cam-outfrq9s_Leung_dust (Overall: DIFF)
58+
- Missed baseline update from previous CAM tag (cam6_4_063)
59+
60+
derecho/nvhpc/aux_cam:
61+
62+
ERS_Ln9.ne30pg3_ne30pg3_mg17.F2000dev.derecho_nvhpc.cam-outfrq9s_gpu_default (Overall: DIFF)
63+
- Expected change in baseline answers.
64+
65+
izumi/nag/aux_cam: ALL PASS
66+
67+
izumi/gnu/aux_cam: ALL PASS
68+
69+
CAM tag used for the baseline comparison tests if different than previous
70+
tag:
71+
72+
Summarize any changes to answers, i.e.,
73+
- what code configurations:
74+
- what platforms/compilers:
75+
- nature of change (roundoff; larger than roundoff but same climate; new
76+
climate):
77+
78+
If bitwise differences were observed, how did you show they were no worse
79+
than roundoff?
80+
81+
If this tag changes climate describe the run(s) done to evaluate the new
82+
climate in enough detail that it(they) could be reproduced, i.e.,
83+
- source tag (all code used must be in the repository):
84+
- platform/compilers:
85+
- configure commandline:
86+
- build-namelist command (or complete namelist):
87+
- MSS location of output:
88+
89+
MSS location of control simulations used to validate new climate:
90+
91+
URL for AMWG diagnostics output used to validate new climate:
92+
93+
===============================================================
294
===============================================================
395

496
Tag name: cam6_4_063

src/physics/cam/clubb_intr.F90

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2869,10 +2869,14 @@ subroutine clubb_tend_cam( state, ptend_all, pbuf, hdtime, &
28692869
!$acc rrho, prer_evap, rtp2_mc_zt, thlp2_mc_zt, wprtp_mc_zt, wpthlp_mc_zt, rtpthlp_mc_zt ) &
28702870
!$acc copy( um, vm, upwp, vpwp, wpthvp, wp2thvp, rtpthvp, thlpthvp, up2, vp2, up3, vp3, &
28712871
!$acc wp2, wp3, rtp2, thlp2, rtp3, thlp3, thlm, rtm, rvm, wprtp, wpthlp, rtpthlp, &
2872+
!$acc pdf_zm_w_1, pdf_zm_w_2, pdf_zm_varnce_w_1, pdf_zm_varnce_w_2, pdf_zm_mixt_frac, &
28722873
!$acc cloud_frac, wp2rtp, wp2thlp, uprcp, vprcp, rc_coef, wp4, wpup2, wpvp2, &
28732874
!$acc ttend_clubb_mc, upwp_clubb_gw_mc, vpwp_clubb_gw_mc, thlp2_clubb_gw_mc, wpthlp_clubb_gw_mc, &
28742875
!$acc ttend_clubb, upwp_clubb_gw, vpwp_clubb_gw, thlp2_clubb_gw, wpthlp_clubb_gw, &
2875-
!$acc wp2up2, wp2vp2, ice_supersat_frac ) &
2876+
!$acc wp2up2, wp2vp2, ice_supersat_frac, &
2877+
!$acc pdf_params_zm_chnk(lchnk)%w_1, pdf_params_zm_chnk(lchnk)%w_2, &
2878+
!$acc pdf_params_zm_chnk(lchnk)%varnce_w_1, pdf_params_zm_chnk(lchnk)%varnce_w_2, &
2879+
!$acc pdf_params_zm_chnk(lchnk)%mixt_frac ) &
28762880
!$acc copyout( temp2d, temp2dp, rtp2_zt_out, thl2_zt_out, wp2_zt_out, pdfp_rtp2, wm_zt_out, inv_exner_clubb, &
28772881
!$acc rcm, wprcp, rcm_in_layer, cloud_cover, zt_out, zi_out, khzm, qclvar, thv, dz_g, &
28782882
!$acc clubbtop, se_dis, eleak, clubb_s, wpthvp_clubb, wprcp_clubb ) &
@@ -2893,7 +2897,6 @@ subroutine clubb_tend_cam( state, ptend_all, pbuf, hdtime, &
28932897
!$acc radf, wpthlp_sfc, clubb_params, sfc_elevation, wprtp_sfc, upwp_sfc, vpwp_sfc, &
28942898
!$acc rtm_ref, thlm_ref, um_ref, vm_ref, ug, vg, p_in_Pa, exner, um_pert_inout, &
28952899
!$acc inv_exner_clubb_surf, thlprcp_out, zi_g, zt_g, qrl_clubb, &
2896-
!$acc pdf_zm_w_1, pdf_zm_w_2, pdf_zm_varnce_w_1, pdf_zm_varnce_w_2, pdf_zm_mixt_frac, &
28972900
!$acc pdf_params_chnk(lchnk)%w_1, pdf_params_chnk(lchnk)%w_2, &
28982901
!$acc pdf_params_chnk(lchnk)%varnce_w_1, pdf_params_chnk(lchnk)%varnce_w_2, &
28992902
!$acc pdf_params_chnk(lchnk)%rt_1, pdf_params_chnk(lchnk)%rt_2, &
@@ -2917,8 +2920,6 @@ subroutine clubb_tend_cam( state, ptend_all, pbuf, hdtime, &
29172920
!$acc pdf_params_chnk(lchnk)%cloud_frac_1, pdf_params_chnk(lchnk)%cloud_frac_2, &
29182921
!$acc pdf_params_chnk(lchnk)%mixt_frac, pdf_params_chnk(lchnk)%ice_supersat_frac_1, &
29192922
!$acc pdf_params_chnk(lchnk)%ice_supersat_frac_2, &
2920-
!$acc pdf_params_zm_chnk(lchnk)%w_1, pdf_params_zm_chnk(lchnk)%w_2, &
2921-
!$acc pdf_params_zm_chnk(lchnk)%varnce_w_1, pdf_params_zm_chnk(lchnk)%varnce_w_2, &
29222923
!$acc pdf_params_zm_chnk(lchnk)%rt_1, pdf_params_zm_chnk(lchnk)%rt_2, &
29232924
!$acc pdf_params_zm_chnk(lchnk)%varnce_rt_1, pdf_params_zm_chnk(lchnk)%varnce_rt_2, &
29242925
!$acc pdf_params_zm_chnk(lchnk)%thl_1, pdf_params_zm_chnk(lchnk)%thl_2, &
@@ -2938,8 +2939,7 @@ subroutine clubb_tend_cam( state, ptend_all, pbuf, hdtime, &
29382939
!$acc pdf_params_zm_chnk(lchnk)%corr_chi_eta_2, pdf_params_zm_chnk(lchnk)%rsatl_1, &
29392940
!$acc pdf_params_zm_chnk(lchnk)%rsatl_2, pdf_params_zm_chnk(lchnk)%rc_1, pdf_params_zm_chnk(lchnk)%rc_2, &
29402941
!$acc pdf_params_zm_chnk(lchnk)%cloud_frac_1, pdf_params_zm_chnk(lchnk)%cloud_frac_2, &
2941-
!$acc pdf_params_zm_chnk(lchnk)%mixt_frac, pdf_params_zm_chnk(lchnk)%ice_supersat_frac_1, &
2942-
!$acc pdf_params_zm_chnk(lchnk)%ice_supersat_frac_2 )
2942+
!$acc pdf_params_zm_chnk(lchnk)%ice_supersat_frac_1, pdf_params_zm_chnk(lchnk)%ice_supersat_frac_2 )
29432943

29442944
!$acc data if( sclr_dim > 0 ) &
29452945
!$acc create( wpsclrp_sfc, sclrm_forcing, sclrm, wpsclrp, sclrp2, sclrp3, sclrprtp, sclrpthlp, sclrpthvp_inout) &

0 commit comments

Comments
 (0)