Skip to content

Commit 22a8515

Browse files
committed
Merge branch 'jgfouca/scream_downstream_2024_10_09' into master (PR #6675)
Downstream merge for eamxx/scream. [BFB] * jgfouca/scream_downstream_2024_10_09: enable shared builds for gh-standalone update PAM submodule bug fix for pam_statistics.h Make sure SCREAM_LIBS_ONLY is on Make sure SCREAM_LIBS_ONLY is on keep github actions working for e3sm repo
2 parents 12f489f + 1b5fb62 commit 22a8515

File tree

315 files changed

+12479
-4637
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

315 files changed

+12479
-4637
lines changed

.github/workflows/eamxx-gh-ci-standalone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: |
4545
# TODO: get rid of this extra line if we can?
4646
git config --global safe.directory '*'
47-
./components/eamxx/scripts/test-all-scream -m ghci-oci -t ${{ matrix.test }}
47+
./components/eamxx/scripts/test-all-scream -m ghci-oci -t ${{ matrix.test }} -c BUILD_SHARED_LIBS=ON
4848
-
4949
name: Artifacts
5050
uses: actions/upload-artifact@v4

.github/workflows/eamxx_default_files.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313

1414
jobs:
1515
scream-defaults:
16+
if: ${{ github.event.repository.name == 'e3sm' }}
1617
runs-on: ubuntu-latest
1718
outputs:
1819
event_name: ${{ github.event_name }}

cime_config/config_grids.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,6 +1783,26 @@
17831783
<mask>oRRS18to6v3</mask>
17841784
</model_grid>
17851785

1786+
<model_grid alias="ne512pg2_ICOS10">
1787+
<grid name="atm">ne512np4.pg2</grid>
1788+
<grid name="lnd">ne512np4.pg2</grid>
1789+
<grid name="ocnice">ICOS10</grid>
1790+
<grid name="rof">r0125</grid>
1791+
<grid name="glc">null</grid>
1792+
<grid name="wav">null</grid>
1793+
<mask>ICOS10</mask>
1794+
</model_grid>
1795+
1796+
<model_grid alias="ne512pg2_ne512pg2">
1797+
<grid name="atm">ne512np4.pg2</grid>
1798+
<grid name="lnd">ne512np4.pg2</grid>
1799+
<grid name="ocnice">ne512np4.pg2</grid>
1800+
<grid name="rof">r0125</grid>
1801+
<grid name="glc">null</grid>
1802+
<grid name="wav">null</grid>
1803+
<mask>ICOS10</mask>
1804+
</model_grid>
1805+
17861806
<model_grid alias="ne512np4_360x720cru_ne512np4">
17871807
<grid name="atm">ne512np4</grid>
17881808
<grid name="lnd">360x720cru</grid>
@@ -3082,6 +3102,8 @@
30823102
<ny>1</ny>
30833103
<file grid="atm|lnd" mask="oRRS18to6v3">$DIN_LOC_ROOT/share/domains/domain.lnd.ne512pg2_oRRS18to6v3.200212.nc</file>
30843104
<file grid="ice|ocn" mask="oRRS18to6v3">$DIN_LOC_ROOT/share/domains/domain.ocn.ne512pg2_oRRS18to6v3.200212.nc</file>
3105+
<file grid="atm|lnd" mask="ICOS10">$DIN_LOC_ROOT/share/domains/domain.lnd.ne512pg2_ICOS10.240602.nc</file>
3106+
<file grid="ice|ocn" mask="ICOS10">$DIN_LOC_ROOT/share/domains/domain.ocn.ne512pg2_ICOS10.240602.nc</file>
30853107
<desc>ne512np4.pg2 is Spectral Elem 6km grid w/ 2x2 FV physics grid per element:</desc>
30863108
</domain>
30873109

@@ -4187,6 +4209,11 @@
41874209
<map name="ATM2ROF_SMAPNAME">cpl/gridmaps/ne256pg2/map_ne256pg2_to_r0125_bilin.200212.nc</map>
41884210
</gridmap>
41894211

4212+
<gridmap atm_grid="ne512np4.pg2" rof_grid="r0125">
4213+
<map name="ATM2ROF_FMAPNAME">cpl/gridmaps/ne512pg2/map_ne512pg2_to_r0125_mono.c20240625.nc</map>
4214+
<map name="ATM2ROF_SMAPNAME">cpl/gridmaps/ne512pg2/map_ne512pg2_to_r0125_mono.c20240625.nc</map>
4215+
</gridmap>
4216+
41904217
<gridmap atm_grid="ne512np4.pg2" ocn_grid="oRRS18to6v3">
41914218
<!-- 6km atm / 18to6 ocean, so use bilin for state -->
41924219
<map name="ATM2OCN_FMAPNAME">cpl/gridmaps/ne512pg2/map_ne512pg2_to_oRRS18to6v3_nco.200212.nc</map>
@@ -4196,6 +4223,15 @@
41964223
<map name="OCN2ATM_SMAPNAME">cpl/gridmaps/ne512pg2/map_oRRS18to6v3_to_ne512pg2_nco.200212.nc</map>
41974224
</gridmap>
41984225

4226+
<gridmap atm_grid="ne512np4.pg2" ocn_grid="ICOS10">
4227+
<!-- 6km atm to 7.5 km ICOS10 ocean, so also use nco for state -->
4228+
<map name="ATM2OCN_FMAPNAME">cpl/gridmaps/ne512pg2/map_ne512pg2_to_ICOS10_nco_c240531.nc</map>
4229+
<map name="ATM2OCN_SMAPNAME">cpl/gridmaps/ne512pg2/map_ne512pg2_to_ICOS10_nco_c240531.nc</map>
4230+
<map name="ATM2OCN_VMAPNAME">cpl/gridmaps/ne512pg2/map_ne512pg2_to_ICOS10_nco_c240531.nc</map>
4231+
<map name="OCN2ATM_FMAPNAME">cpl/gridmaps/ne512pg2/map_ICOS10_to_ne512pg2_nco_c240531.nc</map>
4232+
<map name="OCN2ATM_SMAPNAME">cpl/gridmaps/ne512pg2/map_ICOS10_to_ne512pg2_nco_c240531.nc</map>
4233+
</gridmap>
4234+
41994235
<gridmap atm_grid="ne512np4.pg2" lnd_grid="r0125">
42004236
<!-- 6km atm / 13km land. downscale atm->land, land->atm use bilinear -->
42014237
<map name="ATM2LND_FMAPNAME">cpl/gridmaps/ne512pg2/map_ne512pg2_to_r0125_mono.200212.nc</map>
@@ -5002,6 +5038,11 @@
50025038
<map name="ROF2LND_FMAPNAME">cpl/gridmaps/ne256pg2/map_r0125_to_ne256pg2_mono.200212.nc</map>
50035039
</gridmap>
50045040

5041+
<gridmap lnd_grid="ne5124np4.pg2" rof_grid="r0125">
5042+
<map name="LND2ROF_FMAPNAME">cpl/gridmaps/ne512pg2/map_ne512pg2_to_r0125_mono.c20240625.nc</map>
5043+
<map name="ROF2LND_FMAPNAME">cpl/gridmaps/ne512pg2/map_r0125_to_ne512pg2_mono.c20240625.nc</map>
5044+
</gridmap>
5045+
50055046
<gridmap lnd_grid="ne1024np4.pg2" rof_grid="r0125">
50065047
<map name="LND2ROF_FMAPNAME">cpl/gridmaps/ne1024pg2/map_ne1024pg2_to_r0125_mono.200212.nc</map>
50075048
<map name="ROF2LND_FMAPNAME">cpl/gridmaps/ne1024pg2/map_r0125_to_ne1024pg2_mono.200212.nc</map>
@@ -5082,6 +5123,11 @@
50825123
<map name="ROF2LND_FMAPNAME">lnd/clm2/mappingdata/maps/ne240np4/map_0.5x0.5_nomask_to_ne240np4_nomask_aave_da_c121019.nc</map>
50835124
</gridmap>
50845125

5126+
<gridmap lnd_grid="ne512np4.pg2" rof_grid="r0125">
5127+
<map name="LND2ROF_FMAPNAME">cpl/gridmaps/ne512pg2/map_ne512pg2_to_r0125_mono.c20240625.nc</map>
5128+
<map name="ROF2LND_FMAPNAME">cpl/gridmaps/ne512pg2/map_r0125_to_ne512pg2_mono.c20240625.nc</map>
5129+
</gridmap>
5130+
50855131
<gridmap lnd_grid="ne1024np4.pg2" rof_grid="r0125">
50865132
<map name="LND2ROF_FMAPNAME">cpl/gridmaps/ne1024pg2/map_ne1024pg2_to_r0125_mono.200212.nc</map>
50875133
<map name="ROF2LND_FMAPNAME">cpl/gridmaps/ne1024pg2/map_r0125_to_ne1024pg2_mono.200212.nc</map>

cime_config/machines/Depends.crusher-gpu.crayclang.cmake

Lines changed: 0 additions & 43 deletions
This file was deleted.

cime_config/machines/cmake_macros/amdclang_crusher.cmake

Lines changed: 0 additions & 12 deletions
This file was deleted.

cime_config/machines/cmake_macros/amdclanggpu_crusher.cmake

Lines changed: 0 additions & 26 deletions
This file was deleted.

cime_config/machines/cmake_macros/crayclang-scream_crusher-scream-cpu.cmake

Lines changed: 0 additions & 12 deletions
This file was deleted.

cime_config/machines/cmake_macros/crayclang-scream_crusher-scream-gpu.cmake

Lines changed: 0 additions & 28 deletions
This file was deleted.

cime_config/machines/cmake_macros/crayclang-scream_crusher-scream.cmake

Lines changed: 0 additions & 12 deletions
This file was deleted.

cime_config/machines/cmake_macros/crayclang-scream_frontier-scream-gpu.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set(SCC "cc")
55
set(SCXX "hipcc")
66
set(SFC "ftn")
77

8-
string(APPEND CPPDEFS " -DLINUX")
8+
string(APPEND CPPDEFS " -DLINUX -DSCREAM_SYSTEM_WORKAROUND=0")
99
if (COMP_NAME STREQUAL gptl)
1010
string(APPEND CPPDEFS " -DHAVE_NANOTIME -DBIT64 -DHAVE_SLASHPROC -DHAVE_COMM_F2C -DHAVE_TIMES -DHAVE_GETTIMEOFDAY")
1111
endif()
@@ -19,7 +19,7 @@ endif()
1919

2020
string(APPEND CMAKE_Fortran_FLAGS " -hipa0 -hzero -f free")
2121

22-
string(APPEND CMAKE_EXE_LINKER_FLAGS " -L$ENV{ROCM_PATH}/lib -lamdhip64")
22+
string(APPEND CMAKE_EXE_LINKER_FLAGS " -L$ENV{ROCM_PATH}/lib -lamdhip64 -L/opt/gcc/12.2.0/snos/lib64")
2323
string(APPEND CMAKE_CXX_FLAGS " -I$ENV{ROCM_PATH}/include")
2424

2525
# Crusher: this resolves a crash in mct in docn init

0 commit comments

Comments
 (0)