build.bat: pass -allow-unsupported-compiler for Visual Studio versions newer than CUDA 12.8 expects
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
8f179aaaaf
commit
3f7561a342
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue