Repository navigation
Port roi_align (MPS) to stable ABI. - #9612
Merged
Merged
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9612
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 Unclassified FailureAs of commit 4b8c89c with merge base af77a7c ( UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
adabeyta
force-pushed
the
adabeyta/roi-align-mps-stable
branch
2 times, most recently
from
August 17, 2026 21:56
27cf9a2 to
add5e23
Compare
adabeyta
marked this pull request as ready for review
August 18, 2026 12:55
adabeyta
force-pushed
the
adabeyta/roi-align-mps-stable
branch
from
August 18, 2026 20:39
add5e23 to
4b8c89c
Compare
Collaborator
Author
NP! I pushed up one small edit that mirrors the existing USE_CUDA handling for |
This was referenced Aug 20, 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.
Ports the
roi_alignMPS kernels to the stable ABI.Notes
roi_align_metal_shader.h. Once every MPS op migrates, the per-op headers can consolidate to amps_stable_kernels.handmps_kernels.hgets dropped.atomic_add, so it is nondeterministic and has to say so whentorch.use_deterministic_algorithms(True)is set. The kernel used to do that itself atroi_align_kernel.mm, throughat::globalContext(). A stable-ABI kernel cannot reach that and there is no stable equivalent so alert moved to the autograd wrapper at_autograd_registrations.py:Stable-ABI audit (
torch-abi-audit)Ran torch-abi-audit (https://github.com/Quansight/torch-abi-audit) on both MPS builds: