Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Note. using `"` in dockerfile of windows server gives some error.
Use `choco install cuda` or local installer for everything is failed.

Use local installer to install the cuda library without MSVC integration and then copy the files to the corresponding path.
In the Dockerfiles, the installer is downloaded using `Invoke-WebRequest` to avoid
issues seen when using `curl.exe` on some Windows Server configurations.
When using the local installer, use block command and get the return code.

powershell:
Expand Down
3 changes: 2 additions & 1 deletion windows_server_ltsc2022.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ RUN choco install visualstudio2019-workload-vctools -y


# For some reason, servercore can not install cuda by choco
RUN curl.exe -L https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_windows.exe --output cuda.exe
# Use Invoke-WebRequest instead of curl for a more reliable download
RUN Invoke-WebRequest -Uri https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_windows.exe -OutFile cuda.exe
RUN 7z x cuda.exe -o"cuda"
RUN Start-Process -FilePath '.\cuda\setup.exe' -ArgumentList '-s nvcc_12.2 cublas_12.2 cublas_dev_12.2 cudart_12.2 curand_12.2 curand_dev_12.2 cusolver_12.2 cusolver_dev_12.2 cusparse_12.2 cusparse_dev_12.2' -Wait -NoNewWindow
RUN copy 'cuda\CUDAVisualStudioIntegration\extras\visual_studio_integration\MSBuildExtensions\*.*' 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\BuildCustomizations'
Expand Down