diff --git a/README.md b/README.md index 6e39492..748d777 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/windows_server_ltsc2022.dockerfile b/windows_server_ltsc2022.dockerfile index f16add1..87f2d38 100644 --- a/windows_server_ltsc2022.dockerfile +++ b/windows_server_ltsc2022.dockerfile @@ -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'