From b25c177b3ee05d6037b1e00854b38d871423ba1e Mon Sep 17 00:00:00 2001 From: Omri SirComp Date: Wed, 27 May 2026 10:35:11 +0300 Subject: [PATCH] docs: add Windows test commands Signed-off-by: Omri SirComp --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8178207a5..18805c718 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ configuration and code to generate binaries used during the tests. The test binaries need to be built on the system on which the tests are run, so that they are compiled for the appropriate compute capability. -``` +```bash cd testing # Optionally, build test binaries and point to their location for the test suite make -j $(nproc) @@ -43,9 +43,22 @@ export NUMBA_CUDA_TEST_BIN_DIR=`pwd` pytest -n auto -v --dist loadscope ``` -Alternatively, you can use [pixi](https://pixi.sh/latest/installation/) to wrap all of that up for you: +On Windows, use the batch helper in the `testing` folder to build the test +binaries, then set `NUMBA_CUDA_TEST_BIN_DIR` to that folder before running +pytest: +```powershell +cd testing +# Optionally, build test binaries and point to their location for the test suite +.\build.bat +$env:NUMBA_CUDA_TEST_BIN_DIR = (Get-Location).Path +# Execute tests +pytest -n auto -v --dist loadscope ``` + +Alternatively, you can use [pixi](https://pixi.sh/latest/installation/) to wrap all of that up for you: + +```bash # run tests against CUDA 13 pixi run -e cu13 test -n auto -v --dist loadscope ```