Skip to content

Commit 7839bdb

Browse files
mszhanyimalfet
andauthored
add cuda installation log (#4696)
* fix cuda installation failure in packaging * rm stop windows upgrade * Update cuda_install.bat Co-authored-by: Nikita Shulga <[email protected]>
1 parent 60e2fdc commit 7839bdb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packaging/windows/internal/cuda_install.bat

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ if not exist "%SRC_DIR%\temp_build\NvToolsExt.7z" (
190190
echo Installing CUDA toolkit...
191191
7z x %CUDA_SETUP_FILE% -o"%SRC_DIR%\temp_build\cuda"
192192
pushd "%SRC_DIR%\temp_build\cuda"
193-
start /wait setup.exe -s %ARGS%
193+
start /wait setup.exe -s %ARGS% -loglevel:6 -log:"%cd%/cuda_install_logs"
194+
echo %errorlevel%
195+
194196
popd
195197

196198
echo Installing VS integration...
@@ -219,6 +221,10 @@ set "NVTOOLSEXT_PATH=%ProgramFiles%\NVIDIA Corporation\NvToolsExt\bin\x64"
219221

220222
if not exist "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v%CUDA_VERSION_STR%\bin\nvcc.exe" (
221223
echo CUDA %CUDA_VERSION_STR% installed failed.
224+
echo --------- RunDll32.exe.log
225+
type "%SRC_DIR%\temp_build\cuda\cuda_install_logs\LOG.RunDll32.exe.log"
226+
echo --------- setup.exe.log -------
227+
type "%SRC_DIR%\temp_build\cuda\cuda_install_logs\LOG.setup.exe.log"
222228
exit /b 1
223229
)
224230

0 commit comments

Comments
 (0)