Skip to content

Commit 74d9bf5

Browse files
authored
add cuda install logs (#832)
1 parent b277506 commit 74d9bf5

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

windows/internal/cuda_install.bat

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -185,22 +185,12 @@ echo Installing CUDA toolkit...
185185
7z x %CUDA_SETUP_FILE% -o"%SRC_DIR%\temp_build\cuda"
186186
pushd "%SRC_DIR%\temp_build\cuda"
187187

188-
rem Why find ":", if no process, the output is INFO: No tasks are running which match the specified criteria.
189-
tasklist /fi "imagename eq msiexec.exe" | find ":"
190-
if %ERRORLEVEL% NEQ 0 (
191-
echo There's another installer running.
192-
)
193-
194-
start /wait setup.exe -s %ARGS%
195-
196-
tasklist /fi "imagename eq setup.exe" | find ":"
197-
if %ERRORLEVEL% NEQ 0 (
198-
echo start /wait not working.
199-
)
188+
sc config wuauserv start= disabled
189+
start /wait setup.exe -s %ARGS% -loglevel:6 -log:"%cd%/cuda_install_logs"
190+
echo %errorlevel%
200191

201192
popd
202193

203-
204194
echo Installing VS integration...
205195
if "%VC_YEAR%" == "2017" (
206196
xcopy /Y "%SRC_DIR%\temp_build\cuda\CUDAVisualStudioIntegration\extras\visual_studio_integration\MSBuildExtensions\*.*" "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\BuildCustomizations"
@@ -226,6 +216,8 @@ set "NVTOOLSEXT_PATH=%ProgramFiles%\NVIDIA Corporation\NvToolsExt"
226216

227217
if not exist "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v%CUDA_VERSION_STR%\bin\nvcc.exe" (
228218
echo CUDA %CUDA_VERSION_STR% installed failed.
219+
type "%SRC_DIR%\temp_build\cuda\cuda_install_logs\LOG.RunDll32.exe.log"
220+
type "%SRC_DIR%\temp_build\cuda\cuda_install_logs\LOG.setup.exe.log"
229221
exit /b 1
230222
)
231223

0 commit comments

Comments
 (0)