Skip to content

Commit

Permalink
Testing bencher
Browse files Browse the repository at this point in the history
  • Loading branch information
kotsaloscv committed Feb 13, 2025
1 parent f6f866c commit 8b9b21d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions ci/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ include:

.benchmark_model_stencils:
stage: benchmark
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: always
script:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- source "$HOME/.cargo/env"
Expand All @@ -22,17 +19,19 @@ include:
- export GITHUB_EVENT_PATH=$CI_PROJECT_DIR/event.json
- export RUST_LOG=debug
- cp ./event.json $CI_PROJECT_DIR
- bencher run --project test-1vcbiy6t --token "$BENCHER_API_TOKEN" --adapter python_pytest --file results.json "pytest --benchmark-json results.json -sv --benchmark-only --backend=$BACKEND --grid=$GRID ./model/atmosphere/diffusion/tests/diffusion_stencil_tests/test_apply_diffusion_to_vn.py"
- export BACKEND=gtfn_cpu
- export GRID=icon_grid
- bencher run --project test-1vcbiy6t --token "$BENCHER_API_TOKEN" --github-actions $CK_COMMENT_TOKEN --adapter python_pytest --file results.json "pytest --benchmark-json results.json -sv --benchmark-only --backend=$BACKEND --grid=$GRID ./model/atmosphere/diffusion/tests/diffusion_stencil_tests/test_apply_diffusion_to_vn.py"
- |
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $CK_COMMENT_TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/C2SM/icon4py/issues/662/comments
parallel:
matrix:
- BACKEND: [gtfn_cpu, gtfn_gpu]
GRID: [icon_grid, icon_grid_global]
# parallel:
# matrix:
# - BACKEND: [gtfn_cpu, gtfn_gpu]
# GRID: [icon_grid, icon_grid_global]

# benchmark_model_stencils_x86_64:
# extends: [.benchmark_model_stencils, .test_template_x86_64]
Expand Down

0 comments on commit 8b9b21d

Please sign in to comment.