Port deform_conv2d (CUDA) to stable ABI. - #9626
Open
adabeyta wants to merge 2 commits into
Open
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9626
Note: Links to docs will display an error until the docs builds have been completed. ❌ 6 Pending, 1 Unclassified FailureAs of commit 203951e with merge base 2f411e7 ( 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/deform-conv2d-cuda-stable
branch
from
August 24, 2026 17:17
aefae3b to
9f2d366
Compare
adabeyta
force-pushed
the
adabeyta/deform-conv2d-cuda-stable
branch
from
August 24, 2026 18:24
9f2d366 to
a963b9d
Compare
adabeyta
marked this pull request as ready for review
August 24, 2026 23:10
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
deform_conv2d's CUDA/ROCm kernels to the stable ABI. This is the last CUDA kernel, and the last operator, left in the legacy_Cextension.Notes
Stable-ABI is missing
aten::add.Tensor, so the bias add goes throughsubtract(self, other, -1.0). Follows the CPU (Port deform_conv2d (CPU) to stable ABI. #9610) and MPS (Port deform_conv2d (MPS) to stable ABI. #9617) ports.Device setup (guard, current stream and max grid size for
GET_BLOCKS) move off ofat::cudaonto the stable ABI andcudaDeviceGetAttributecall is used, since the stable ABI has nogetCurrentDeviceProperties().Stable-ABI audit (
torch-abi-audit)Ran
torch-abi-audit.deform_conv2d's CUDA op moves into the fully-STABLE_C_stable.so(unstable=0). The unstable_C.socount drops, 85 → 66:deform_conv2dwas the last CUDA consumer of ATen tensor algebra.