eigsol_gpu/build.bat
2024-09-26 22:32:58 +02:00

20 lines
446 B
Batchfile

@echo off
ctime -begin timeBuild.ctm
@rem /WX /W4 /wd4201 /wd4100 /wd4189 /wd4244 /wd4127 /wd4456
set CommonCompilerFlags="/nologo /Zi /FC"
set CudaSources=../src/cuda_entry_point.cu
set Sources=../src/main.c
IF NOT EXIST .\build mkdir .\build
pushd .\build
nvcc -Xcompiler %CommonCompilerFlags% -o program.exe %Sources% %CudaSources%
set LastError=%ERRORLEVEL%
popd
ctime -end timeBuild.ctm %LastError%
IF NOT %LastError%==0 GOTO :end
:end