File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -185,22 +185,12 @@ echo Installing CUDA toolkit...
185
185
7z x %CUDA_SETUP_FILE% -o" %SRC_DIR% \temp_build\cuda"
186
186
pushd " %SRC_DIR% \temp_build\cuda"
187
187
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%
200
191
201
192
popd
202
193
203
-
204
194
echo Installing VS integration...
205
195
if " %VC_YEAR% " == " 2017" (
206
196
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"
226
216
227
217
if not exist " %ProgramFiles% \NVIDIA GPU Computing Toolkit\CUDA\v%CUDA_VERSION_STR% \bin\nvcc.exe" (
228
218
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"
229
221
exit /b 1
230
222
)
231
223
You can’t perform that action at this time.
0 commit comments