Repository navigation
Build only CUDA 13.2 and 13.4 into the Windows AMI - #8985
Merged
Merged
Conversation
PyTorch binary builds dropped to CUDA 13.2 and 13.4: CUDA_ARCHES in .github/scripts/generate_binary_build_matrix.py is [13.2, 13.4], 12.6 went in pytorch/pytorch#196249 and 13.0 in pytorch/pytorch#198913. The AMI was still installing five toolkits, three of which nothing consumes. Removes the 12.6, 12.8 and 13.0 provisioners and their branches in Install-CUDA-Tools.ps1. Also removes the pre-switch defaults. They set the 12.6 toolkit and a cuda12 cuDNN, so with 12.x gone an unrecognised CUDA_VERSION would have silently installed CUDA 12.6 instead of failing. Unknown versions now error out. Side effect worth having: each toolkit is a multi-GB download and install, so dropping three should take a meaningful bite out of the ~50 minute build.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
zxiiro
approved these changes
Oct 2, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
The Windows AMI installs five CUDA toolkits — 12.6, 12.8, 13.0, 13.2, 13.4. PyTorch binary builds only use the last two:
12.6 was removed in pytorch/pytorch#196249 and 13.0 in pytorch/pytorch#198913. Nothing consumes 12.8 either. This drops the three unused ones.
Changes
windows.pkr.hcl— removes theCUDA_VERSION=12.6,12.8and13.0provisioner blocks. 13.2 and 13.4 are unchanged.Install-CUDA-Tools.ps1— removes the matching switch branches, and removes the defaults set before the switch:Those mattered. They name the 12.6 toolkit and a cuda12 cuDNN, and with the 12.x branches gone an unrecognised
CUDA_VERSIONwould have fallen through the switch and silently installed CUDA 12.6 against a cuda12 cuDNN — a worse failure than the one being removed, because it would produce a plausible-looking AMI. Both remaining versions set all three values themselves, so the defaults are now gone and adefaultbranch errors out instead:Side effect
Each toolkit is a multi-GB download plus install. Dropping three should take a meaningful bite out of the ~50 minute build, which matters given how close that build sits to the job limit — see #8983.
Test plan
packer fmt -check .— clean.packer validate -syntax-only .— "Syntax-only check passed. Everything looks okay."aws/ami/outside the explanatory comment.workflow_dispatchrun of Build Windows AMI to confirm end to end. Worth landing Bound the Windows AMI build's wait for AMI availability #8983 first so a hang fails in ~95 minutes with a message rather than being cancelled at 360.