Skip to content

Commit fb50890

Browse files
committed
#3207 LFRic KGOs full reproducibility
1 parent af3c89b commit fb50890

9 files changed

Lines changed: 28 additions & 96 deletions

.github/workflows/lfric_test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
export OMP_NUM_THREADS=1
126126
export START_TIME=$SECONDS
127127
mpirun -n 12 ../bin/gungho_model configuration.nml
128-
python ${PSYCLONE_LFRIC_DIR}/compare_output.py ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums.txt gungho_model-checksums.txt
128+
diff ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums-gnu-12r-1t.txt gungho_model-checksums.txt
129129
export VAR_TIME=$((${SECONDS}-${START_TIME}))
130130
echo "time=${VAR_TIME}" >> "${GITHUB_OUTPUT}"
131131
@@ -162,7 +162,7 @@ jobs:
162162
export CUDA_VISIBLE_DEVICES=1
163163
export START_TIME=$SECONDS
164164
mpirun -n 1 ../bin/gungho_model configuration.nml
165-
python ${PSYCLONE_LFRIC_DIR}/compare_output.py ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums.txt gungho_model-checksums.txt
165+
diff ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums-nvhpc-1r-12t.txt gungho_model-checksums.txt
166166
export VAR_TIME=$((${SECONDS}-${START_TIME}))
167167
echo "time=${VAR_TIME}" >> "${GITHUB_OUTPUT}"
168168
echo "build_time=${BUILD_ELAPSED}" >> "${GITHUB_OUTPUT}"
@@ -193,7 +193,7 @@ jobs:
193193
export CUDA_VISIBLE_DEVICES=1
194194
export START_TIME=$SECONDS
195195
mpirun -n 1 ../bin/gungho_model configuration.nml
196-
python ${PSYCLONE_LFRIC_DIR}/compare_output.py ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums.txt gungho_model-checksums.txt
196+
diff ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums-nvhpc-1r-12t.txt gungho_model-checksums.txt
197197
export VAR_TIME=$((${SECONDS}-${START_TIME}))
198198
echo "time=${VAR_TIME}" >> "${GITHUB_OUTPUT}"
199199
@@ -219,10 +219,10 @@ jobs:
219219
# Run
220220
cd applications/gungho_model/example
221221
rm -f timer.txt gungho_model-checksums.txt # In case there were from a previous run
222-
export OMP_NUM_THREADS=2
222+
export OMP_NUM_THREADS=4
223223
export START_TIME=$SECONDS
224224
mpirun -n 6 ../bin/gungho_model configuration.nml
225-
python ${PSYCLONE_LFRIC_DIR}/compare_output.py ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums.txt gungho_model-checksums.txt
225+
diff ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums-gnu-6r-4t.txt gungho_model-checksums.txt
226226
export VAR_TIME=$((${SECONDS}-${START_TIME}))
227227
echo "time=${VAR_TIME}" >> "${GITHUB_OUTPUT}"
228228
@@ -248,10 +248,10 @@ jobs:
248248
# Run
249249
cd applications/gungho_model/example
250250
rm -f timer.txt gungho_model-checksums.txt # In case there were from a previous run
251-
export OMP_NUM_THREADS=2
251+
export OMP_NUM_THREADS=4
252252
export START_TIME=$SECONDS
253253
mpirun -n 6 ../bin/gungho_model configuration.nml
254-
python ${PSYCLONE_LFRIC_DIR}/compare_output.py ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums.txt gungho_model-checksums.txt
254+
diff ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums-gnu-6r-4t.txt gungho_model-checksums.txt
255255
export VAR_TIME=$((${SECONDS}-${START_TIME}))
256256
echo "time=${VAR_TIME}" >> "${GITHUB_OUTPUT}"
257257
@@ -279,7 +279,7 @@ jobs:
279279
OMP_NUM_THREADS=8 mpirun -n 1 ../bin/lfric_atm configuration.nml
280280
281281
# And compare the results
282-
python ${PSYCLONE_LFRIC_DIR}/compare_output.py ${PSYCLONE_LFRIC_DIR}/KGOs/lfric_atm-checksums.txt lfric_atm-checksums.txt
282+
diff ${PSYCLONE_LFRIC_DIR}/KGOs/lfric_atm-checksums-gnu-1r-8t.txt lfric_atm-checksums.txt
283283
export VAR_TIME=$((${SECONDS}-${START_TIME}))
284284
echo "time=${VAR_TIME}" >> "${GITHUB_OUTPUT}"
285285
echo "build_time=${BUILD_ELAPSED}" >> "${GITHUB_OUTPUT}"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Inner product checksum rho = 40D0CC8DC064B3E1
2+
Inner product checksum theta = 41FCE985F2DD2756
3+
Inner product checksum u = 450134BD797FD66E
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Inner product checksum rho = 40D0CC8DC064B3E2
2+
Inner product checksum theta = 41FCE985F2DD2758
3+
Inner product checksum u = 450134BD797FD66D
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Inner product checksum rho = 40D0CC8DC0650BE9
2+
Inner product checksum theta = 41FCE985F2DD42FF
3+
Inner product checksum u = 450134BD79897C7B

examples/lfric/scripts/KGOs/gungho_model-checksums.txt

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

examples/lfric/scripts/KGOs/lfric_atm-checksums.txt renamed to examples/lfric/scripts/KGOs/lfric_atm-checksums-gnu-1r-1t.txt

File renamed without changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Inner product checksum rho = 405F163A37CF0715
2+
Inner product checksum theta = 41B09B081D579238
3+
Inner product checksum u = 44035AFB5E390BAA
4+
Inner product checksum mr1 = 3F900FB50435E6CC
5+
Inner product checksum mr2 = 3E3B00EEB3C82F37
6+
Inner product checksum mr3 = 3DC969B45C6D3EC2
7+
Inner product checksum mr4 = 0
8+
Inner product checksum mr5 = 0
9+
Inner product checksum mr6 = 0

examples/lfric/scripts/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@
3636

3737
include ../../common.mk
3838

39-
# Get all psyclone scripts in this folder, which are all python files excluding
40-
# the compare_output.py script
41-
SCRIPTS = $(filter-out compare_output.py, $(wildcard *.py))
39+
# Get all psyclone scripts in this folder, which are all python files
40+
SCRIPTS = $(wildcard *.py)
4241

4342
# The kernel-extraction script generates driver source files.
4443
GENERATED_FILES += driver-*.F90

examples/lfric/scripts/compare_output.py

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

0 commit comments

Comments
 (0)