-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch Tuesday for May 2024 (Again) (#38891)
* Update AzCopy, PowerShell Core, and VS.
- Loading branch information
1 parent
7fd2b83
commit 01f6021
Showing
11 changed files
with
60 additions
and
67 deletions.
There are no files selected for viewing
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# REPLACE WITH UTILITY-PREFIX.ps1 | ||
|
||
# REPLACE WITH CudnnUrl | ||
|
||
$destination = "$env:ProgramFiles\NVIDIA GPU Computing Toolkit\CUDA\v12.1" | ||
|
||
$CudnnLocalZipPath = "$PSScriptRoot\cudnn-windows-x86_64-8.8.1.3_cuda12-archive.zip" | ||
|
||
try { | ||
if (Test-Path $CudnnLocalZipPath) { | ||
$cudnnZipPath = $CudnnLocalZipPath | ||
} else { | ||
Write-Host 'Attempting to download cudnn. If this fails, you need to agree to NVidia''s EULA, download cudnn, and place it next to this script.' | ||
$cudnnZipPath = Get-TempFilePath -Extension 'zip' | ||
& curl.exe -L -o $cudnnZipPath $CudnnUrl | ||
if ($LASTEXITCODE -ne 0) { | ||
throw 'Failed to download cudnn!' | ||
} | ||
} | ||
|
||
Write-Host "Installing CUDNN to $destination..." | ||
tar.exe -xvf "$cudnnZipPath" --strip 1 --directory "$destination" | ||
Write-Host 'Installation successful!' | ||
} | ||
catch { | ||
Write-Error "Failed to install CUDNN! $($_.Exception.Message)" | ||
throw | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if (Test-Path "$env:ProgramFiles\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include\cudnn.h") { | ||
Write-Host 'cudnn appears correctly installed' | ||
} else { | ||
Write-Error 'cudnn appears broken!' | ||
} |