Skip to content

Commit

Permalink
Add AirSpeedVelocity.jl to CSCS CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzovarese committed Sep 13, 2024
1 parent bf0884b commit 086462b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion ci/cscs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 086462b

Please sign in to comment.