[Test] Port roi_align (MPS) to stable ABI. - #9574
Draft
adabeyta wants to merge 2 commits into
Draft
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9574
Note: Links to docs will display an error until the docs builds have been completed. ❌ 28 New Failures, 1 Unrelated Failure, 1 Unclassified FailureAs of commit b20333b with merge base 0b23e88 ( NEW FAILURES - The following jobs have failed:
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:
BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
NicolasHug
reviewed
Jul 31, 2026
Comment on lines
+19
to
+24
| #if defined(TORCH_VERSION_2_14_0) && \ | ||
| TORCH_FEATURE_VERSION >= TORCH_VERSION_2_14_0 | ||
| #define ROI_ALIGN_MPS_HAS_SET_ARG_BYTES 1 | ||
| #else | ||
| #define ROI_ALIGN_MPS_HAS_SET_ARG_BYTES 0 | ||
| #endif |
Member
There was a problem hiding this comment.
Thanks for going our of your way to support multiple torch versions ! But let's simplify the problem: it's fine to have torch 2.14 as the minimal torch version. We can drop the torch < 2.14 parts
NicolasHug
force-pushed
the
adabeyta/roi-align-mps-stable
branch
from
August 4, 2026 19:05
2bf14a3 to
34a1c35
Compare
adabeyta
force-pushed
the
adabeyta/roi-align-mps-stable
branch
from
August 4, 2026 23:12
34a1c35 to
b20333b
Compare
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
torch_mps_set_arg_bytes, older targets ride them in as 1-element tensors. Today's 2.11 pin builds the tensor path, so no torch floor changes anywhere. Bumping the pin later on switches paths with no code change.roi_align_metal_shader.h. Once every MPS op migrates, the per-op headers can consolidate to amps_stable_kernels.handmps_kernels.hgets dropped.in ("cuda", "mps").Stable-ABI audit (
torch-abi-audit)Ran torch-abi-audit (https://github.com/Quansight/torch-abi-audit) on both MPS builds: