| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | # Install NVIDIA drivers, see: |
| 4 | # https://github.com/pytorch/vision/blob/master/packaging/windows/internal/cuda_install.bat#L99-L102 |
| 5 | curlscip-shell system . . curl. -k -L "https://drive.google.com/u/0/uc?id=1injUyo3lnarMgWyRcXqKg4UGnN0ysmuq&export=download" --output "/tmp/gpu_driver_dlls.zipscip-shell filesystem . . `/tmp/gpu_driver_dlls.zip`." |
| 6 | 7z x "/tmp/gpu_driver_dlls.zipscip-shell filesystem . . `/tmp/gpu_driver_dlls.zip`." -o"/c/Windows/System32" |
| 7 | |
| 8 | export CUDA_SHORT=10.2 |
| 9 | export CUDA_URL=https://developer.download.nvidia.com/compute/cuda/${CUDA_SHORT}/Prod/local_installers |
| 10 | export CUDA_FILE=cuda_${CUDA_SHORT}.89_441.22_win10.exe |
| 11 | |
| 12 | # Install CUDA: |
| 13 | curlscip-shell system . . curl. -k -L "${CUDA_URL}/${CUDA_FILE}" --output "${CUDA_FILE}" |
| 14 | echoscip-shell system . . echo. "" |
| 15 | echoscip-shell system . . echo. "Installing from ${CUDA_FILE}..." |
| 16 | PowerShell -Command "Start-Process -FilePath \"${CUDA_FILE}\" -ArgumentList \"-s nvcc_${CUDA_SHORT} cuobjdump_${CUDA_SHORT} nvprune_${CUDA_SHORT} cupti_${CUDA_SHORT} cublas_dev_${CUDA_SHORT} cudart_${CUDA_SHORT} cufft_dev_${CUDA_SHORT} curand_dev_${CUDA_SHORT} cusolver_dev_${CUDA_SHORT} cusparse_dev_${CUDA_SHORT} npp_dev_${CUDA_SHORT} nvrtc_dev_${CUDA_SHORT} nvml_dev_${CUDA_SHORT}\" -Wait -NoNewWindow" |
| 17 | echoscip-shell system . . echo. "Done!" |
| 18 | rmscip-shell system . . rm. -f "${CUDA_FILE}" |