Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve handling windows update #846

Merged
merged 3 commits into from
Sep 9, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion windows/internal/cuda_install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ echo Installing CUDA toolkit...
pushd "%SRC_DIR%\temp_build\cuda"

sc config wuauserv start= disabled
sc stop wuauserv
sc query wuauserv

start /wait setup.exe -s %ARGS% -loglevel:6 -log:"%cd%/cuda_install_logs"
echo %errorlevel%

Expand Down Expand Up @@ -216,8 +219,10 @@ set "NVTOOLSEXT_PATH=%ProgramFiles%\NVIDIA Corporation\NvToolsExt"

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

Expand All @@ -232,3 +237,7 @@ echo Installing GPU driver DLLs

echo Cleaning temp files
rd /s /q "%SRC_DIR%\temp_build" || ver > nul

sc config wuauserv start= auto
sc start wuauserv
sc query wuauserv
malfet marked this conversation as resolved.
Show resolved Hide resolved