Skip to content

Instantly share code, notes, and snippets.

@seemethere
Created June 4, 2021 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seemethere/aa846b74e6cf8663bd6dab627fa5ca6d to your computer and use it in GitHub Desktop.
Save seemethere/aa846b74e6cf8663bd6dab627fa5ca6d to your computer and use it in GitHub Desktop.
$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