Created
June 4, 2021 00:37
-
-
Save seemethere/aa846b74e6cf8663bd6dab627fa5ca6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$CudaInstallerVersion = "cuda_11.3.0_465.89_win10" | |
$CudaInstallerLink = "https://ossci-windows.s3.amazonaws.com/${CudaInstallerVersion}.exe" | |
$TmpDownloadFile = Join-Path $Env:Temp $(New-Guid) | |
$TmpDownloadFile += ".exe" | |
Write-Output "Downloading ${CudaInstallerLink} to ${TmpDownloadFile}" | |
Invoke-WebRequest -Uri ${CudaInstallerLink} -OutFile ${TmpDownloadFile} | |
Write-Output "Extracting ${TmpDownloadFile}" | |
7z x ${TmpDownloadFile} -o${TmpDownloadFile}_extracted | |
Write-Output "Running ${TmpDownloadFile} -s Display.Driver -noreboot -clean" | |
&"${TmpDownloadFile}_extracted\setup.exe" -s Display.Driver -noreboot -clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment