Skip to content

Update CUDA extensions for newer PyTorch#27

Open
relh wants to merge 1 commit into
ddshan:masterfrom
relh:master
Open

Update CUDA extensions for newer PyTorch#27
relh wants to merge 1 commit into
ddshan:masterfrom
relh:master

Conversation

@relh

@relh relh commented Jun 28, 2023

Copy link
Copy Markdown

Summary

Newer PyTorch/CUDA builds no longer expose the old THC runtime APIs used by these CUDA extensions. That makes the ROIAlign, ROIPool, and NMS CUDA code harder or impossible to build on newer environments.

This PR moves the extension code toward modern ATen/C10 CUDA APIs. It replaces THCudaCheck with AT/C10 CUDA checks, uses the C10 CUDA caching allocator for the NMS mask allocation, and adds shared helper definitions needed by the ROI kernels.

Verification

  • The original PR did not record a test command.

@relh relh changed the title new version that doesnt need THC Update CUDA extensions for newer PyTorch Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant