Skip to content

Commit

Permalink
#2708 updates for review
Browse files Browse the repository at this point in the history
  • Loading branch information
arporter committed Sep 17, 2024
1 parent 61ae9d7 commit aa7f2e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/lfric_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:
pip install jinja2
# PSyclone, compile and run MetOffice gungho_model on GPU
# This currently uses revision 2222 of the LFRic source and needs to
# be updated to use LFRIC_APPS_REV.
- name: LFRic GungHo with OpenACC offload
run: |
# Set up environment
Expand All @@ -84,17 +86,20 @@ jobs:
source .runner_venv/bin/activate
export PSYCLONE_LFRIC_DIR=${GITHUB_WORKSPACE}/examples/lfric/scripts
export PSYCLONE_CONFIG_FILE=${PSYCLONE_LFRIC_DIR}/KGOs/lfric_psyclone.cfg
# TODO update revision 2222 below.
export LFRIC_DIR=${HOME}/LFRic/lfric_apps_r2222
export OPT_DIR=${LFRIC_DIR}/applications/gungho_model/optimisation/psyclone-test
cd ${LFRIC_DIR}
# PSyclone scripts must now be under 'optimisation' and be called 'global.py'
mkdir -p ${OPT_DIR}
cp ${PSYCLONE_LFRIC_DIR}/acc_parallel.py ${OPT_DIR}/global.py
# Clean previous version and compile again
rm -rf appplications/gungho_model/working
rm -rf applications/gungho_model/working
./build/local_build.py -a gungho_model -p psyclone-test
# Run
cd applications/gungho_model/example
# Run. NOTE, we do not use precisely the same configuration as the
# other LFRic tests. This is because we're not yet using the same
# LFRIC_APPS_REV as those tests.
cp ${PSYCLONE_LFRIC_DIR}/KGOs/lfric_gungho_configuration_gpu_4its.nml configuration.nml
mpirun -n 1 ../bin/gungho_model configuration.nml |& tee output.txt
python ${PSYCLONE_LFRIC_DIR}/compare_ouput.py ${PSYCLONE_LFRIC_DIR}/KGOs/lfric_gungho_configuration_4its_checksums.txt gungho_model-checksums.txt
Expand All @@ -108,7 +113,8 @@ jobs:
--password ${{ secrets.MONGODB_PASSWORD }} \
--eval 'db.GitHub_CI.insertOne({branch_name: "'"$GITHUB_REF_NAME"'", commit: "'"$GITHUB_SHA"'",
github_job: "'"$GITHUB_RUN_ID"'"-"'"$GITHUB_RUN_ATTEMPT"'",
ci_test: "LFRic OpenACC", lfric_apps_version: '"$LFRIC_APPS_REV"', system: "GlaDos",
# TODO - update revision 2222 below.
ci_test: "LFRic OpenACC", lfric_apps_version: '"2222"', system: "GlaDos",
compiler:"spack-nvhpc-24.5", date: new Date(), elapsed_time: '"$VAR_TIME"',
num_of_halo_exchanges: '"$VAR_HALOS"'})'
Expand Down
1 change: 1 addition & 0 deletions examples/lfric/scripts/acc_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
ACCParallelTrans, ACCLoopTrans, ACCRoutineTrans)


# Names of any routines that we won't add any OpenACC to.
ACC_EXCLUSIONS = [
]

Expand Down

0 comments on commit aa7f2e3

Please sign in to comment.