Skip to content

Port roi_pool (CUDA) to stable ABI. - #9582

Merged
NicolasHug merged 1 commit into
mainfrom
adabeyta/roi-pool-cuda-stable
Aug 24, 2026
Merged

NicolasHug merged 1 commit into
mainfrom
adabeyta/roi-pool-cuda-stable

Conversation

@adabeyta

@adabeyta adabeyta commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Ports roi_pool's CUDA/ROCm kernels to the stable ABI.

Notes

  • Requires [Stable ABI] Move fastAtomicAdd to torch/headeronly. pytorch#191501, which lands torch::headeronly::fastAtomicAdd (the stable-ABI replacement for the backward's at::native::fastAtomicAdd).
  • Determinism layer change. The CUDA backward's at::globalContext().alertNotDeterministic call can't be made from a stable kernel, so it moves to the Python backward as torch._prims_common.alert_not_deterministic, gated to grad_output.device.type == "cuda".

Stable-ABI audit (torch-abi-audit)

Ran torch-abi-audit on a CUDA build. The counts don't move with this layer roi_pool's CUDA kernel references only unstable APIs already shared with the remaining legacy ops.

Package: torchvision
  Torch ABI:   UNSTABLE
  CPython ABI: n/a
  Bundled libs: 3
  -- bundled libs --
    [UNSTABLE] [not-abi3] _C.so            (stable_shim=0,  unstable=104)
    [STABLE  ] [not-abi3] _C_stable.so     (stable_shim=70, unstable=0)
    [STABLE  ] [not-abi3] image_stable.so  (stable_shim=76, unstable=0)

@pytorch-bot

pytorch-bot Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9582

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 Unclassified Failure

As of commit f5355bc with merge base 50237ca (image):

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.

@meta-cla meta-cla Bot added the cla signed label Aug 4, 2026
Base automatically changed from adabeyta/roi-pool-cpu-stable to main August 5, 2026 14:09
@NicolasHug
NicolasHug force-pushed the adabeyta/roi-pool-cuda-stable branch from 4fbcf57 to 1a7e398 Compare August 5, 2026 14:09
@adabeyta
adabeyta force-pushed the adabeyta/roi-pool-cuda-stable branch from 1a7e398 to 2cf55e3 Compare August 11, 2026 22:37
@adabeyta
adabeyta force-pushed the adabeyta/roi-pool-cuda-stable branch from 2cf55e3 to 5f73af8 Compare August 17, 2026 20:34
@adabeyta
adabeyta changed the base branch from main to adabeyta/roi-pool-mps-stable August 17, 2026 20:34
@adabeyta
adabeyta force-pushed the adabeyta/roi-pool-cuda-stable branch from 5f73af8 to 5c58da0 Compare August 19, 2026 13:39
@adabeyta
adabeyta force-pushed the adabeyta/roi-pool-cuda-stable branch from 5c58da0 to cb2c60d Compare August 19, 2026 14:19
@adabeyta
adabeyta force-pushed the adabeyta/roi-pool-cuda-stable branch from cb2c60d to 431bc4f Compare August 19, 2026 15:16
Base automatically changed from adabeyta/roi-pool-mps-stable to main August 19, 2026 15:19
@adabeyta
adabeyta force-pushed the adabeyta/roi-pool-cuda-stable branch from 431bc4f to de8bf6b Compare August 19, 2026 15:19
@adabeyta
adabeyta force-pushed the adabeyta/roi-pool-cuda-stable branch from de8bf6b to f5355bc Compare August 24, 2026 15:25
@adabeyta
adabeyta marked this pull request as ready for review August 24, 2026 16:30
@adabeyta adabeyta changed the title [Test] Port roi_pool (CUDA) to stable ABI. Port roi_pool (CUDA) to stable ABI. Aug 24, 2026
@adabeyta
adabeyta requested a review from NicolasHug August 24, 2026 16:31

@NicolasHug NicolasHug left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@NicolasHug
NicolasHug merged commit 8af7a68 into main Aug 24, 2026
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants