Skip to content

Commit de0da94

Browse files
Save gnu warnings in rt logfile. Add WARN_AS_ERROR build option // Update ORT input data directories (#3138) (#3129)
* UFSWM - Save gnu warnings in rt logfile. Add WARN_AS_ERROR build option * UFSWM - update ORT input data directories and Jenkinsfile ORT typo fix
1 parent 9765ab6 commit de0da94

19 files changed

+2296
-2272
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ set(CMEPS OFF CACHE BOOL "Enable CMEPS")
4040
set(CDEPS OFF CACHE BOOL "Enable CDEPS")
4141
set(NOAHMP OFF CACHE BOOL "Enable NOAHMP")
4242
set(FIRE_BEHAVIOR OFF CACHE BOOL "Enable Fire Behavior")
43+
set(WARN_AS_ERROR OFF CACHE BOOL "Enable compile option to treat warning as error")
4344

4445
# Configure selected application specific components
4546
message("")
@@ -61,6 +62,7 @@ message("CDEPS ............ ${CDEPS}")
6162
message("CMEPS ............ ${CMEPS}")
6263
message("NOAHMP ........... ${NOAHMP}")
6364
message("FIRE_BEHAVIOR .... ${FIRE_BEHAVIOR}")
65+
message("WARN_AS_ERROR .... ${WARN_AS_ERROR}")
6466

6567
###############################################################################
6668
### Build Options

cmake/GNU.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ else()
2323
set(CMAKE_Fortran_FLAGS_RELEASE "-O2")
2424
set(CMAKE_C_FLAGS_RELEASE "-O2")
2525
endif()
26+
27+
if(WARN_AS_ERROR)
28+
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Werror")
29+
endif()

cmake/Intel.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,7 @@ if(DISABLE_FMA)
5757
set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -no-fma")
5858
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -no-fma")
5959
endif()
60+
61+
if(WARN_AS_ERROR)
62+
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -warn errors")
63+
endif()

cmake/IntelLLVM.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,7 @@ if(DISABLE_FMA)
5858
set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -no-fma")
5959
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -no-fma")
6060
endif()
61+
62+
if(WARN_AS_ERROR)
63+
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -warn errors")
64+
endif()

cmake/IntelMixed.cmake

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ endif()
2020

2121
if(DEBUG)
2222
add_definitions(-DDEBUG)
23-
#set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -O0 -check -check noarg_temp_created -check nopointer -warn -warn noerrors -fp-stack-check -fstack-protector-all -fpe0 -debug -ftrapuv -init=snan,arrays")
24-
set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -O0 -check all -check noarg_temp_created -warn -warn noerrors -fp-stack-check -fstack-protector-all -fpe0 -debug -ftrapuv -init=snan,arrays")
23+
set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -O0 -check all -check noarg_temp_created -warn -fp-stack-check -fstack-protector-all -fpe0 -debug -ftrapuv -init=snan,arrays")
2524
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -ftrapuv")
2625
else()
2726
if(FASTER)
@@ -57,3 +56,7 @@ if(DISABLE_FMA)
5756
set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -no-fma")
5857
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -no-fma")
5958
endif()
59+
60+
if(WARN_AS_ERROR)
61+
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -warn errors")
62+
endif()

tests/ci/Jenkinsfile.ort

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ stage('Run ORT on Ursa parallel'){
9494
'''
9595
} //steps
9696
} //stage
97-
stage('cpid_control_nowave_noaero_p8'){
97+
stage('cpld_control_nowave_noaero_p8'){
9898
agent{ label 'ursa'}
9999
options{
100100
timeout(time:6, unit:'HOURS')
@@ -304,7 +304,7 @@ stage('Run ORT on Ursa parallel'){
304304
} //steps
305305
} //stage
306306

307-
stage('cpid_control_nowave_noaero_p8'){
307+
stage('cpld_control_nowave_noaero_p8'){
308308
agent{ label 'hercules'}
309309
options{
310310
timeout(time:6, unit:'HOURS')
@@ -514,7 +514,7 @@ stage('Run ORT on Ursa parallel'){
514514
} //steps
515515
} //stage
516516

517-
stage('cpid_control_nowave_noaero_p8'){
517+
stage('cpld_control_nowave_noaero_p8'){
518518
agent{ label 'orion'}
519519
options{
520520
timeout(time:6, unit:'HOURS')

tests/logs/OpnReqTests_control_p8_ursa.log

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Mon Mar 9 18:53:40 UTC 2026
1+
Thu Mar 12 06:40:49 UTC 2026
22
Start Operation Requirement Test
33

44

5-
baseline dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-stmp/role.epic/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_bit_base_intel
6-
working dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-ptmp/role.epic/FV3_OPNREQ_TEST/opnReqTest_2068788/bit_base_bit_base
5+
baseline dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-stmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_bit_base_intel
6+
working dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-ptmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/opnReqTest_3611857/bit_base_bit_base
77
Checking test bit_base results ....
88
Moving baseline bit_base files ....
99
Moving sfcf000.nc .........OK
@@ -51,14 +51,14 @@ Moving baseline bit_base files ....
5151
Moving RESTART/20210323.060000.sfc_data.tile5.nc .........OK
5252
Moving RESTART/20210323.060000.sfc_data.tile6.nc .........OK
5353

54-
0: The total amount of wall time = 135.999336
55-
0: The maximum resident set size (KB) = 2593604
54+
0: The total amount of wall time = 620.541275
55+
0: The maximum resident set size (KB) = 2611316
5656

5757
Test bit_base PASS
5858

5959

60-
baseline dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-stmp/role.epic/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_dbg_base_intel
61-
working dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-ptmp/role.epic/FV3_OPNREQ_TEST/opnReqTest_2068788/dbg_base_dbg_base
60+
baseline dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-stmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_dbg_base_intel
61+
working dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-ptmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/opnReqTest_3611857/dbg_base_dbg_base
6262
Checking test dbg_base results ....
6363
Moving baseline dbg_base files ....
6464
Moving sfcf000.nc .........OK
@@ -106,14 +106,14 @@ Moving baseline dbg_base files ....
106106
Moving RESTART/20210323.060000.sfc_data.tile5.nc .........OK
107107
Moving RESTART/20210323.060000.sfc_data.tile6.nc .........OK
108108

109-
0: The total amount of wall time = 1240.024205
110-
0: The maximum resident set size (KB) = 2526908
109+
0: The total amount of wall time = 1205.830917
110+
0: The maximum resident set size (KB) = 2538384
111111

112112
Test dbg_base PASS
113113

114114

115-
baseline dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-stmp/role.epic/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_std_base_intel
116-
working dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-ptmp/role.epic/FV3_OPNREQ_TEST/opnReqTest_2068788/dcp_dcp
115+
baseline dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-stmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_std_base_intel
116+
working dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-ptmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/opnReqTest_3611857/dcp_dcp
117117
Checking test dcp results ....
118118
Comparing sfcf000.nc .....USING NCCMP......OK
119119
Comparing sfcf021.nc .....USING NCCMP......OK
@@ -160,14 +160,14 @@ Checking test dcp results ....
160160
Comparing RESTART/20210323.060000.sfc_data.tile5.nc .....USING NCCMP......OK
161161
Comparing RESTART/20210323.060000.sfc_data.tile6.nc .....USING NCCMP......OK
162162

163-
0: The total amount of wall time = 122.770360
164-
0: The maximum resident set size (KB) = 2505984
163+
0: The total amount of wall time = 599.967314
164+
0: The maximum resident set size (KB) = 2522600
165165

166166
Test dcp PASS
167167

168168

169-
baseline dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-stmp/role.epic/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_std_base_intel
170-
working dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-ptmp/role.epic/FV3_OPNREQ_TEST/opnReqTest_2068788/mpi_mpi
169+
baseline dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-stmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_std_base_intel
170+
working dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-ptmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/opnReqTest_3611857/mpi_mpi
171171
Checking test mpi results ....
172172
Comparing sfcf000.nc .....USING NCCMP......OK
173173
Comparing sfcf021.nc .....USING NCCMP......OK
@@ -214,14 +214,14 @@ Checking test mpi results ....
214214
Comparing RESTART/20210323.060000.sfc_data.tile5.nc .....USING NCCMP......OK
215215
Comparing RESTART/20210323.060000.sfc_data.tile6.nc .....USING NCCMP......OK
216216

217-
0: The total amount of wall time = 116.808086
218-
0: The maximum resident set size (KB) = 2507000
217+
0: The total amount of wall time = 615.044617
218+
0: The maximum resident set size (KB) = 2522288
219219

220220
Test mpi PASS
221221

222222

223-
baseline dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-stmp/role.epic/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_std_base_intel
224-
working dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-ptmp/role.epic/FV3_OPNREQ_TEST/opnReqTest_2068788/rst_rst
223+
baseline dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-stmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_std_base_intel
224+
working dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-ptmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/opnReqTest_3611857/rst_rst
225225
Checking test rst results ....
226226
Comparing sfcf000.nc .....USING NCCMP......OK
227227
Comparing sfcf021.nc .....USING NCCMP......OK
@@ -268,14 +268,14 @@ Checking test rst results ....
268268
Comparing RESTART/20210323.060000.sfc_data.tile5.nc .....USING NCCMP......OK
269269
Comparing RESTART/20210323.060000.sfc_data.tile6.nc .....USING NCCMP......OK
270270

271-
0: The total amount of wall time = 115.108826
272-
0: The maximum resident set size (KB) = 2509156
271+
0: The total amount of wall time = 115.566437
272+
0: The maximum resident set size (KB) = 2502092
273273

274274
Test rst PASS
275275

276276

277-
baseline dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-stmp/role.epic/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_std_base_intel
278-
working dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-ptmp/role.epic/FV3_OPNREQ_TEST/opnReqTest_2068788/std_base_std_base
277+
baseline dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-stmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_std_base_intel
278+
working dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-ptmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/opnReqTest_3611857/std_base_std_base
279279
Checking test std_base results ....
280280
Moving baseline std_base files ....
281281
Moving sfcf000.nc .........OK
@@ -323,14 +323,14 @@ Moving baseline std_base files ....
323323
Moving RESTART/20210323.060000.sfc_data.tile5.nc .........OK
324324
Moving RESTART/20210323.060000.sfc_data.tile6.nc .........OK
325325

326-
0: The total amount of wall time = 113.171843
327-
0: The maximum resident set size (KB) = 2521228
326+
0: The total amount of wall time = 797.445042
327+
0: The maximum resident set size (KB) = 2512424
328328

329329
Test std_base PASS
330330

331331

332-
baseline dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-stmp/role.epic/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_std_base_intel
333-
working dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-ptmp/role.epic/FV3_OPNREQ_TEST/opnReqTest_2068788/thr_thr
332+
baseline dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-stmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/OPNREQ_TEST/control_p8_std_base_intel
333+
working dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-ptmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/opnReqTest_3611857/thr_thr
334334
Checking test thr results ....
335335
Comparing sfcf000.nc .....USING NCCMP......OK
336336
Comparing sfcf021.nc .....USING NCCMP......OK
@@ -377,11 +377,11 @@ Checking test thr results ....
377377
Comparing RESTART/20210323.060000.sfc_data.tile5.nc .....USING NCCMP......OK
378378
Comparing RESTART/20210323.060000.sfc_data.tile6.nc .....USING NCCMP......OK
379379

380-
0: The total amount of wall time = 128.508869
381-
0: The maximum resident set size (KB) = 2494664
380+
0: The total amount of wall time = 438.604966
381+
0: The maximum resident set size (KB) = 2503336
382382

383383
Test thr PASS
384384

385385
OPERATION REQUIREMENT TEST WAS SUCCESSFUL
386-
Mon Mar 9 20:02:52 UTC 2026
387-
Elapsed time: 01h:09m:12s. Have a nice day!
386+
Thu Mar 12 08:26:59 UTC 2026
387+
Elapsed time: 01h:46m:10s. Have a nice day!

tests/logs/OpnReqTests_cpld_control_nowave_noaero_p8_ursa.log

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Mon Mar 9 18:53:41 UTC 2026
1+
Thu Mar 12 06:41:49 UTC 2026
22
Start Operation Requirement Test
33

44

5-
baseline dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-stmp/role.epic/FV3_OPNREQ_TEST/OPNREQ_TEST/cpld_control_c96_noaero_p8_dbg_base_intel
6-
working dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-ptmp/role.epic/FV3_OPNREQ_TEST/opnReqTest_2069016/dbg_base_dbg_base
5+
baseline dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-stmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/OPNREQ_TEST/cpld_control_c96_noaero_p8_dbg_base_intel
6+
working dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-ptmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/opnReqTest_3626764/dbg_base_dbg_base
77
Checking test dbg_base results ....
88
Moving baseline dbg_base files ....
99
Moving sfcf021.tile1.nc .........OK
@@ -66,14 +66,14 @@ Moving baseline dbg_base files ....
6666
Moving RESTART/iced.2021-03-23-21600.nc .........OK
6767
Moving RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc .........OK
6868

69-
0: The total amount of wall time = 3024.336448
70-
0: The maximum resident set size (KB) = 3046392
69+
0: The total amount of wall time = 3136.206941
70+
0: The maximum resident set size (KB) = 3003612
7171

7272
Test dbg_base PASS
7373

7474

75-
baseline dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-stmp/role.epic/FV3_OPNREQ_TEST/OPNREQ_TEST/cpld_control_c96_noaero_p8_std_base_intel
76-
working dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-ptmp/role.epic/FV3_OPNREQ_TEST/opnReqTest_2069016/rst_rst
75+
baseline dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-stmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/OPNREQ_TEST/cpld_control_c96_noaero_p8_std_base_intel
76+
working dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-ptmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/opnReqTest_3626764/rst_rst
7777
Checking test rst results ....
7878
Comparing sfcf021.tile1.nc .....USING NCCMP......OK
7979
Comparing sfcf021.tile2.nc .....USING NCCMP......OK
@@ -135,14 +135,14 @@ Checking test rst results ....
135135
Comparing RESTART/iced.2021-03-23-21600.nc .....USING NCCMP......OK
136136
Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc .....USING NCCMP......OK
137137

138-
0: The total amount of wall time = 284.303806
139-
0: The maximum resident set size (KB) = 3008196
138+
0: The total amount of wall time = 280.863809
139+
0: The maximum resident set size (KB) = 2996532
140140

141141
Test rst PASS
142142

143143

144-
baseline dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-stmp/role.epic/FV3_OPNREQ_TEST/OPNREQ_TEST/cpld_control_c96_noaero_p8_std_base_intel
145-
working dir = /scratch3/NCEPDEV/stmp/role.epic/ORT-ptmp/role.epic/FV3_OPNREQ_TEST/opnReqTest_2069016/std_base_std_base
144+
baseline dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-stmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/OPNREQ_TEST/cpld_control_c96_noaero_p8_std_base_intel
145+
working dir = /scratch3/NCEPDEV/stmp/Fernando.Andrade-maldonado/ORT-ptmp/Fernando.Andrade-maldonado/FV3_OPNREQ_TEST/opnReqTest_3626764/std_base_std_base
146146
Checking test std_base results ....
147147
Moving baseline std_base files ....
148148
Moving sfcf021.tile1.nc .........OK
@@ -205,11 +205,11 @@ Moving baseline std_base files ....
205205
Moving RESTART/iced.2021-03-23-21600.nc .........OK
206206
Moving RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc .........OK
207207

208-
0: The total amount of wall time = 283.924324
209-
0: The maximum resident set size (KB) = 2997428
208+
0: The total amount of wall time = 295.292305
209+
0: The maximum resident set size (KB) = 3004072
210210

211211
Test std_base PASS
212212

213213
OPERATION REQUIREMENT TEST WAS SUCCESSFUL
214-
Mon Mar 9 20:13:49 UTC 2026
215-
Elapsed time: 01h:20m:09s. Have a nice day!
214+
Thu Mar 12 08:03:57 UTC 2026
215+
Elapsed time: 01h:22m:08s. Have a nice day!

0 commit comments

Comments
 (0)