Repository navigation
Build a single py3-none wheel per arch x accelerator variant - #9643
Merged
Merged
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9643
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 Pending, 3 Unclassified FailuresAs of commit e899cc9 with merge base 7a7520f ( UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
atalman
approved these changes
Sep 29, 2026
py3-none wheel per arch x accelerator variant
NicolasHug
commented
Oct 7, 2026
| extra_compile_args["nvcc"].append("/Zc:preprocessor") | ||
| extra_compile_args["nvcc"].append("-DCCCL_IGNORE_MSVC_TRADITIONAL_PREPROCESSOR_WARNING") | ||
| if sysconfig.get_config_var("Py_GIL_DISABLED"): | ||
| extra_compile_args["cxx"].append("-DPy_GIL_DISABLED") |
prewaskar-nv
added a commit
to NVIDIA/pytorch-windows-ci
that referenced
this pull request
Oct 9, 2026
#29) * fix(woa): accept extension wheels by pip's tag rules, not by tag shape The 2026-10-08 nightly's sign job refused torchaudio and torchvision (https://github.com/NVIDIA/pytorch-windows-ci/actions/runs/37760319300): on 2026-10-07 upstream switched both to one py3-none wheel per platform (pytorch/audio#4234, pytorch/vision#9643), and wheel_repack.py only accepted torch's own tag or abi3. github_release.py had the same abi3-only rule for a wheel that several cells share. Both now ask what pip asks: is one of the wheel's tags among the tags the cell's torch interpreter supports? wheel_tags.py lists those tags the way packaging.tags does for CPython, and its tests hold the two to the same set for 3.10 to 3.15, with and without the GIL. Any tagging upstream picks next is accepted if pip would install it there, and refused if not. github_release.py also checks every wheel a cell vouches for against that cell's torch, which is what now keeps a cell-specific wheel from arriving twice. * fix(woa): give free-threaded cells abi3t, their stable ABI packaging 26.3 offers a free-threaded CPython the abi3t stable ABI (PEP 803) back to cp32, where it offers a GIL build abi3. wheel_tags.py offered free-threaded cells no stable ABI at all, so an abi3t extension for 3.15t would be refused, and the check that our tags match packaging's failed under packaging 26.3. CI passed only because its runner had an older packaging. CI now installs packaging>=26.3, so that check covers abi3t. On older packaging, the test leaves abi3t out of the comparison. * fix(woa): refuse a cell whose torch is built for another Python Now that a wheel name may arrive from several cells, a cell whose torch was built for another cell's Python would share every wheel name with that cell and pass every check. The release would then carry one cell's torch for both. check_evidence now requires each cell's torch to be built for the interpreter the cell is named for. That keeps a wheel built for one Python unique to one cell, as the base commit's duplicate-name check did. Also: - pin packaging to 26.3 in CI, since the tag test compares against it exactly; - say in the docs that the platform tag is still fixed to win_arm64; - spell out _torch_interpreter's no-torch case.
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.
Up until now we were building ~7 wheels for each
arch x acceleratorvariant, i.e. one for each CPython version (including the free-threaded ones).TorchVision doesn't rely on the Python C APIs, so it's Python-ABI-stable. This is now reflected on the wheel builds by explicitly marking it as
py3-none. We now only need one wheel perarch x acceleratorvariant. I added CI jobs that:arch x acceleratorvariantAlso confirmed visually that only one wheel is being built from the uploaded artifacts.