Skip to content

Commit 8e96857

Browse files
committed
Merge branch 'ykim/frontier/recovery' (PR #7050)
The --core-spec argument has been restored to its state before the February 18, 2025, Frontier update. Some Depends files for the GNU compiler on Frontier have been created. [BFB] No baseline for Frontier yet Fixes #7046 Fixes #7037
2 parents 7bba735 + 0895fb4 commit 8e96857

File tree

4 files changed

+83
-1
lines changed

4 files changed

+83
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
list(APPEND MPAS_ICE_SHORTWAVE
2+
${CMAKE_BINARY_DIR}/core_seaice/column/ice_shortwave.f90
3+
)
4+
5+
# For optimized GNU builds that use v9 or higher, remove an optimization on one file
6+
if (NOT DEBUG)
7+
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 9)
8+
foreach(ITEM IN LISTS MPAS_ICE_SHORTWAVE)
9+
e3sm_add_flags("${ITEM}" "-fno-tree-pta") # avoids an error that shows up in solver with gnu9 and higher
10+
endforeach()
11+
endif()
12+
endif()
13+
14+
list(APPEND NO_INLINE_ARG_PACKING_LIST
15+
eam/src/dynamics/se/inidat.F90
16+
)
17+
18+
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
19+
if (NOT DEBUG)
20+
# new in gnu10, inline arg packing was causing INF values with SMS_P4x1.ne4pg2_ne4pg2.F-MMFXX
21+
foreach(ITEM IN LISTS NO_INLINE_ARG_PACKING_LIST)
22+
e3sm_add_flags("${ITEM}" " -fno-inline-arg-packing")
23+
endforeach()
24+
endif()
25+
endif()
26+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
list(APPEND MPAS_ICE_SHORTWAVE
2+
${CMAKE_BINARY_DIR}/core_seaice/column/ice_shortwave.f90
3+
)
4+
5+
# For optimized GNU builds that use v9 or higher, remove an optimization on one file
6+
if (NOT DEBUG)
7+
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 9)
8+
foreach(ITEM IN LISTS MPAS_ICE_SHORTWAVE)
9+
e3sm_add_flags("${ITEM}" "-fno-tree-pta") # avoids an error that shows up in solver with gnu9 and higher
10+
endforeach()
11+
endif()
12+
endif()
13+
14+
list(APPEND NO_INLINE_ARG_PACKING_LIST
15+
eam/src/dynamics/se/inidat.F90
16+
)
17+
18+
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
19+
if (NOT DEBUG)
20+
# new in gnu10, inline arg packing was causing INF values with SMS_P4x1.ne4pg2_ne4pg2.F-MMFXX
21+
foreach(ITEM IN LISTS NO_INLINE_ARG_PACKING_LIST)
22+
e3sm_add_flags("${ITEM}" " -fno-inline-arg-packing")
23+
endforeach()
24+
endif()
25+
endif()
26+
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
e3sm_add_flags("eam/src/dynamics/fv/geopk.F90" "-fcray-pointer")
2+
3+
list(APPEND MPAS_ICE_SHORTWAVE
4+
${CMAKE_BINARY_DIR}/core_seaice/column/ice_shortwave.f90
5+
)
6+
7+
# For optimized GNU builds that use v9 or higher, remove an optimization on one file
8+
if (NOT DEBUG)
9+
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 9)
10+
foreach(ITEM IN LISTS MPAS_ICE_SHORTWAVE)
11+
e3sm_add_flags("${ITEM}" "-fno-tree-pta") # avoids an error that shows up in solver with gnu9 and higher
12+
endforeach()
13+
endif()
14+
endif()
15+
16+
list(APPEND NO_INLINE_ARG_PACKING_LIST
17+
eam/src/dynamics/se/inidat.F90
18+
)
19+
20+
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
21+
if (NOT DEBUG)
22+
# new in gnu10, inline arg packing was causing INF values with SMS_P4x1.ne4pg2_ne4pg2.F-MMFXX
23+
foreach(ITEM IN LISTS NO_INLINE_ARG_PACKING_LIST)
24+
e3sm_add_flags("${ITEM}" " -fno-inline-arg-packing")
25+
endforeach()
26+
endif()
27+
endif()

cime_config/machines/config_batch.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,10 @@
755755
</batch_system>
756756

757757
<batch_system MACH="frontier" type="slurm">
758-
<batch_submit>/lustre/orion/cli115/world-shared/e3sm/tools/sbatch/throttle</batch_submit>
758+
<batch_submit>sbatch</batch_submit>
759+
<directives>
760+
<directive> --core-spec=$SHELL{tpn=`./xmlquery --value MAX_TASKS_PER_NODE`; if [[ $tpn > 56 ]]; then echo "64-$tpn"|bc; else echo 8; fi; }</directive>
761+
</directives>
759762
<queues>
760763
<queue strict="true" nodemin="1" nodemax="91" walltimemax="2:00:00" default="true">batch</queue>
761764
<queue strict="true" nodemin="92" nodemax="183" walltimemax="6:00:00">batch</queue>

0 commit comments

Comments
 (0)