run_tests.py fails on windows, but running tests individually works
Author: kaosmajaCreated Sep 21, 2026Updated Sep 21, 2026
Platform: Windows
In README.md, the instructions say to use python3 run_tests.py --output ./test --dir ./build/cpp --config test_args.json
But this fails on windows, here is a minimal example:
> python run_tests.py --output .\test\ --dir .\build\cpp\0_Introduction\clock\Release\ --config test_args.json
Detected 1 GPU(s).
Found 1 executables
Running tests with up to 1 parallel tasks
-----------------------------------------
Starting clock.exe
Command (clock.exe ): ./clock.exe
Error running clock.exe : [WinError 2] The system cannot find the file specified
Progress: 1/1 runs completed.
Test Summary:
Ran 1 test runs for 1 executables.
Failed runs (1):
clock.exe : Error: [WinError 2] The system cannot find the file specified (code -1)versus:
> .\build\cpp\0_Introduction\clock\Release\clock.exe
CUDA Clock sample
GPU Device 0: with compute capability 7.5 and Number of SMs 16
Average clocks/block = 1531.671875Source: NVIDIA/cuda-samples