From 086462b6b7a02a6651a9468b1cd0270f37e7bbf4 Mon Sep 17 00:00:00 2001 From: Lorenzo Varese <55581163+lorenzovarese@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:16:52 +0200 Subject: [PATCH] Add AirSpeedVelocity.jl to CSCS CI --- ci/cscs.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ci/cscs.yml b/ci/cscs.yml index d7c64f8..e202a7f 100644 --- a/ci/cscs.yml +++ b/ci/cscs.yml @@ -82,8 +82,21 @@ run_tests: script: - . /opt/gridtools_jl_env/setup-env.sh - cd /opt/GridTools + - julia -e 'using Pkg; Pkg.add("AirspeedVelocity"); Pkg.build("AirspeedVelocity")' + - export PATH="$PATH:$HOME/.julia/bin" + - echo "Updated PATH: $PATH" - julia --project=. -e 'using Pkg; Pkg.test()' - - julia --project=. --threads 8 benchmark/benchmarks.jl + - mkdir -p results + - git fetch origin main:refs/remotes/origin/main + - CURRENT_COMMIT=$(git rev-parse HEAD) + - LAST_MAIN_COMMIT=$(git rev-parse origin/main) + - echo "Benchmarking current commit ($CURRENT_COMMIT) in the current branch and ($LAST_MAIN_COMMIT) in the main branch" + - benchpkg --rev="$LAST_MAIN_COMMIT,$CURRENT_COMMIT" --bench-on="$CURRENT_COMMIT" --output-dir=results/ + - mkdir -p plots + - echo "Generating plots comparing current commit ($CURRENT_COMMIT) against ($LAST_MAIN_COMMIT) in the main branch" + - benchpkgplot GridTools --rev="$LAST_MAIN_COMMIT,$CURRENT_COMMIT" --npart=10 --format=png --input-dir=results/ --output-dir=plots/ + - echo "Creating benchmark table comparing current commit ($CURRENT_COMMIT) against ($LAST_MAIN_COMMIT) in the main branch" + - benchpkgtable --rev="$LAST_MAIN_COMMIT,$CURRENT_COMMIT" --input-dir=results/ --ratio variables: SLURM_JOB_NUM_NODES: 1 SLURM_NTASKS: 1