Skip to content

Commit 5e688a3

Browse files
committed
Add smoke test for benchmarks
1 parent e742f71 commit 5e688a3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/test-wheel-linux.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,14 @@ jobs:
271271
${SANITIZER_CMD} pytest -ra -s -vv examples/
272272
popd
273273
274+
- name: Run cuda.bindings benchmarks (smoke test)
275+
if: ${{ env.SKIP_CUDA_BINDINGS_TEST == '0' }}
276+
run: |
277+
pip install pyperf
278+
pushd cuda_bindings/benchmarks
279+
python run_pyperf.py --fast --loops 1 --min-time 0
280+
popd
281+
274282
- name: Run cuda.core tests
275283
env:
276284
CUDA_VER: ${{ matrix.CUDA_VER }}

cuda_bindings/benchmarks/pixi.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ source = { features = ["cu13", "cu13-source", "bench", "cpp-bench", "dev", "bind
5353
[target.linux.tasks.bench]
5454
cmd = ["python", "$PIXI_PROJECT_ROOT/run_pyperf.py"]
5555

56+
[target.linux.tasks.bench-smoke-test]
57+
cmd = ["python", "$PIXI_PROJECT_ROOT/run_pyperf.py", "--fast", "--loops", "1", "--min-time", "0"
58+
]
59+
5660
[target.linux.tasks.bench-legacy]
5761
cmd = "pytest --benchmark-only --override-ini 'addopts=' $PIXI_PROJECT_ROOT/pytest-legacy/"
5862

0 commit comments

Comments
 (0)