Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/lfric_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ on:
push

env:
LFRIC_APPS_HASH: 0f10e77a0d59901396719f475b658a51fb595a10
LFRIC_APPS_HASH: 948b9ec1a7ae6ef110b97ed45ced8d4b71079f34
PYTHON_VERSION: "3.14"
GNU_TOOLCHAIN: gnu14_openmpi
NVHPC_TOOLCHAIN: nvhpc25_11_openmpi
Expand Down Expand Up @@ -123,10 +123,10 @@ jobs:
# Number of OMP threads have to be set even when psyclone does not inject OpenMP
# because some psykal-lite routines have it.
export OMP_NUM_THREADS=1
export START_TIME=$SECONDS
mpirun -n 12 ../bin/gungho_model configuration.nml
python ${PSYCLONE_LFRIC_DIR}/compare_output.py ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums.txt gungho_model-checksums.txt
cat timer.txt
export VAR_TIME=$(grep "gungho_model" timer.txt | cut -d'|' -f5)
export VAR_TIME=$((${SECONDS}-${START_TIME}))
echo "time=${VAR_TIME}" >> "${GITHUB_OUTPUT}"

# PSyclone, compile and run MetOffice gungho_model on GPU
Expand Down Expand Up @@ -155,10 +155,10 @@ jobs:
rm -f timer.txt gungho_model-checksums.txt # In case there were from a previous run
export OMP_NUM_THREADS=12
export CUDA_VISIBLE_DEVICES=1
export START_TIME=$SECONDS
mpirun -n 1 ../bin/gungho_model configuration.nml
python ${PSYCLONE_LFRIC_DIR}/compare_output.py ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums.txt gungho_model-checksums.txt
cat timer.txt
export VAR_TIME=$(grep "gungho_model" timer.txt | cut -d'|' -f5)
export VAR_TIME=$((${SECONDS}-${START_TIME}))
echo "time=${VAR_TIME}" >> "${GITHUB_OUTPUT}"
echo "build_time=${BUILD_ELAPSED}" >> "${GITHUB_OUTPUT}"

Expand Down Expand Up @@ -186,10 +186,10 @@ jobs:
rm -f timer.txt gungho_model-checksums.txt # In case there were from a previous run
export OMP_NUM_THREADS=12
export CUDA_VISIBLE_DEVICES=1
export START_TIME=$SECONDS
mpirun -n 1 ../bin/gungho_model configuration.nml
python ${PSYCLONE_LFRIC_DIR}/compare_output.py ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums.txt gungho_model-checksums.txt
cat timer.txt
export VAR_TIME=$(grep "gungho_model" timer.txt | cut -d'|' -f5)
export VAR_TIME=$((${SECONDS}-${START_TIME}))
echo "time=${VAR_TIME}" >> "${GITHUB_OUTPUT}"

# PSyclone, compile and run MetOffice LFRic with all optimisations and 6 mpi ranks each with 2 OpenMP threads
Expand All @@ -215,10 +215,10 @@ jobs:
cd applications/gungho_model/example
rm -f timer.txt gungho_model-checksums.txt # In case there were from a previous run
export OMP_NUM_THREADS=2
export START_TIME=$SECONDS
mpirun -n 6 ../bin/gungho_model configuration.nml
python ${PSYCLONE_LFRIC_DIR}/compare_output.py ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums.txt gungho_model-checksums.txt
cat timer.txt
export VAR_TIME=$(grep "gungho_model" timer.txt | cut -d'|' -f5)
export VAR_TIME=$((${SECONDS}-${START_TIME}))
echo "time=${VAR_TIME}" >> "${GITHUB_OUTPUT}"

# PSyclone, compile and run MetOffice LFRic with all optimisations and 6 mpi ranks each with 2 OpenMP threads
Expand All @@ -244,10 +244,10 @@ jobs:
cd applications/gungho_model/example
rm -f timer.txt gungho_model-checksums.txt # In case there were from a previous run
export OMP_NUM_THREADS=2
export START_TIME=$SECONDS
mpirun -n 6 ../bin/gungho_model configuration.nml
python ${PSYCLONE_LFRIC_DIR}/compare_output.py ${PSYCLONE_LFRIC_DIR}/KGOs/gungho_model-checksums.txt gungho_model-checksums.txt
cat timer.txt
export VAR_TIME=$(grep "gungho_model" timer.txt | cut -d'|' -f5)
export VAR_TIME=$((${SECONDS}-${START_TIME}))
echo "time=${VAR_TIME}" >> "${GITHUB_OUTPUT}"

- name: LFRic Atm PSyclone transmutation
Expand All @@ -270,12 +270,12 @@ jobs:
# Run the app with 8 threads and no MPI
# (with MPI it currently fails to initialise the mesh - even with no psyclone)
cd applications/lfric_atm/example/
export START_TIME=$SECONDS
OMP_NUM_THREADS=8 mpirun -n 1 ../bin/lfric_atm configuration.nml

# And compare the results
python ${PSYCLONE_LFRIC_DIR}/compare_output.py ${PSYCLONE_LFRIC_DIR}/KGOs/lfric_atm-checksums.txt lfric_atm-checksums.txt
cat timer.txt
export VAR_TIME=$(grep "lfric_atm" timer.txt | cut -d'|' -f5)
export VAR_TIME=$((${SECONDS}-${START_TIME}))
echo "time=${VAR_TIME}" >> "${GITHUB_OUTPUT}"
echo "build_time=${BUILD_ELAPSED}" >> "${GITHUB_OUTPUT}"

Expand Down
2 changes: 2 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
71) PR #3381. Update integration tests to LFRic_apps 3.1.1

70) PR #3358 for #1734, #2975 and #2949. Improve symbol table consistency
with better copies, validation checks and symbol localisation operations.

Expand Down
Loading