diff --git a/proto-cuda/build.bat b/proto-cuda/build.bat index 68ed145a3..5a004e460 100644 --- a/proto-cuda/build.bat +++ b/proto-cuda/build.bat @@ -1,6 +1,6 @@ @echo off rem Build igneum-bench-cuda for one program pack (Windows). -rem Run from an "x64 Native Tools Command Prompt for VS 2022" so cl.exe is on PATH, +rem Run from an "x64 Native Tools Command Prompt" (VS 2022 or newer) so cl.exe is on PATH. rem with CUDA Toolkit 12.8 or newer installed (nvcc on PATH). rem Usage: build.bat [pack] [arch] rem pack directory name under packs\ (default igneum-genesis) @@ -29,10 +29,10 @@ if not exist "packs\%PACK%\kernel.cu" ( ) nvcc --version -echo nvcc -O3 -std=c++17 -arch=%ARCH% -I "packs\%PACK%" -o "igneum-bench-cuda-%PACK%.exe" host.cu "packs\%PACK%\kernel.cu" -nvcc -O3 -std=c++17 -arch=%ARCH% -I "packs\%PACK%" -o "igneum-bench-cuda-%PACK%.exe" host.cu "packs\%PACK%\kernel.cu" +echo nvcc -O3 -std=c++17 -arch=%ARCH% -allow-unsupported-compiler -I "packs\%PACK%" -o "igneum-bench-cuda-%PACK%.exe" host.cu "packs\%PACK%\kernel.cu" +nvcc -O3 -std=c++17 -arch=%ARCH% -allow-unsupported-compiler -I "packs\%PACK%" -o "igneum-bench-cuda-%PACK%.exe" host.cu "packs\%PACK%\kernel.cu" if errorlevel 1 ( - echo build failed. If nvcc complains about an unsupported host compiler version, add -allow-unsupported-compiler to the command above. + echo build failed. The script already passes -allow-unsupported-compiler for Visual Studio versions newer than CUDA expects. If the errors are inside CUDA headers, install the "MSVC v143 - VS 2022 C++ x64 build tools" component from the Visual Studio Installer and build again, or install a newer CUDA Toolkit. exit /b 1 ) echo built igneum-bench-cuda-%PACK%.exe