Skip to content

Commit

Permalink
#2132 Try uploading the integration test performance results
Browse files Browse the repository at this point in the history
  • Loading branch information
sergisiso committed Sep 14, 2023
1 parent f408b3b commit 99c8840
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/nemo_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ jobs:
tail -n 1 output.txt | grep -q "S_max: 0.407622"
grep -A 1 "Elapsed Time" output.txt
echo $GITHUB_REF_NAME $GITHUB_SHA $(grep -A 1 "Elapsed Time" output.txt | head -n 2 | tail -n 1) >> ${NEMO_DIR}/performance_history_openmp_gpu
# Upload the results into a Github Gist
newresults=$(printf "%q" "$(cat ${NEMO_DIR}/performance_history_openmp_gpu)")
{
printf '{"description":"New NEMO OpenMP GPU results","files":{"nemo_openmp_gpu.txt":{"content":"'
echo -n ${newresults:2:-1}
printf '"}}}'
}| curl -L -X PATCH \
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer ${{ secrets.GIST_TOKEN }}"
-H "X-GitHub-Api-Version: 2022-11-28"
https://api.github.com/gists/a4049a0fc0a0a11651a5ce6a04d76160
--data-binary @-
# PSyclone, compile and run MetOffice NEMO with OpenACC kernels for GPUs
- name: NEMO MetOffice OpenACC kernels for GPU
Expand Down

0 comments on commit 99c8840

Please sign in to comment.