8000 [ATen][CUDA][CUB] Implement changes to CCCL (CUB/Thrust/LibCUDACXX) usage in ATen by Aidyn-A · Pull Request #153373 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[ATen][CUDA][CUB] Implement changes to CCCL (CUB/Thrust/LibCUDACXX) usage in ATen #153373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from

Conversation

Aidyn-A
Copy link
Collaborator
@Aidyn-A Aidyn-A commented May 12, 2025

A major release of CCCL 3.0.0 will introduce some bc-breaking changes. Namely iterators like TransformInputIterator and ConstantInputIterator were moved from CUB to Thrust, some operators like Max and Sum were moved to LibCUDACXX.

For the more info on changes please visit: https://nvidia.github.io/cccl/cccl/3.0_migration_guide.html

This is a follow up to PR #147493. A description from the original PR:

Several cub iterators have been deprecated and removed in the latest CCCL (cub) development NVIDIA/cccl#3831. This PR replaced the usage of those cub iterators with thrust iterators.

Some cub thread operators were also deprecated and removed in NVIDIA/cccl#3918. This PR replaced those operators with libcudacxx ops.

This might also affect ROCM usability a bit.

This patch is tested to work with CCCL commit at NVIDIA/cccl@82befb0

Tracking of CCCL/CUB deprecations in the most recent development NVIDIA/cccl#101

cc @ptrblck @msaroufim @eqy @jerryzh168 @manuelcandales @SherlockNoMad @angelayi @xwang233 @miscco

@Aidyn-A Aidyn-A requested review from eqy and syed-ahmed as code owners May 12, 2025 13:20
Copy link
pytorch-bot bot commented May 12, 2025

🔗 Helpful Links

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

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

⏳ 1 Pending, 1 Unrelated Failure

As of commit 793a956 with merge base d0cfa3e (image):

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added the release notes: cuda release notes category label May 12, 2025
@Aidyn-A Aidyn-A added module: cuda Related to torch.cuda, and CUDA support in general topic: not user facing topic category module: core aten Related to change to the Core ATen opset labels May 12, 2025
@Aidyn-A Aidyn-A requested a review from ngimel May 12, 2025 13:22
Copy link
@miscco miscco left a comment

Choose a reason for hiding this comment

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

This is technically correct.

However, with the exception of cuda::maximum and cuda::minimumall the types are available unconditionally.

So we can considerably simplify the changes

@colesbury colesbury added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label May 13, 2025
@Aidyn-A Aidyn-A marked this pull request as draft May 14, 2025 09:12
@Aidyn-A Aidyn-A marked this pull request as ready for review May 15, 2025 12:42
@eqy eqy added the ciflow/trunk Trigger trunk jobs on your pull request label May 27, 2025
@Aidyn-A
Copy link
Collaborator Author
Aidyn-A commented May 28, 2025

@ngimel, can you please review?

@Aidyn-A Aidyn-A marked this pull request as draft May 29, 2025 12:37
@Aidyn-A Aidyn-A force-pushed the cccl_cub_v3_changes branch from b332ead to 30512e7 Compare June 3, 2025 09:28
Copy link
Collaborator
@cyyever cyyever left a comment

Choose a reason for hiding this comment

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

Nice

@cyyever cyyever added the ciflow/rocm Trigger "default" config CI on ROCm label Jun 3, 2025
@Aidyn-A Aidyn-A marked this pull request as ready for review June 3, 2025 17:35
@Aidyn-A
Copy link
Collaborator Author
Aidyn-A commented Jun 3, 2025

Thanks!

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: Approvers from one of the following sets are needed:

  • superuser (pytorch/metamates)
  • Core Reviewers (mruberry, lezcano, Skylion007, ngimel, peterbell10, ...)
  • Core Maintainers (soumith, gchanan, ezyang, dzhulgakov, malfet, ...)
Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

@Aidyn-A
Copy link
Collaborator Author
Aidyn-A commented Jun 3, 2025

@ngimel, may I have your review please?

@Aidyn-A Aidyn-A requested a review from malfet June 9, 2025 16:24
Copy link
Contributor
@atalman atalman left a comment

Choose a reason for hiding this comment

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

@Aidyn-A
Copy link
Collaborator Author
Aidyn-A commented Jun 27, 2025

@pytorchbot rebase

@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Successfully rebased cccl_cub_v3_changes onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via git checkout cccl_cub_v3_changes && git pull --rebase)

9E88

@cyyever
Copy link
Collaborator
cyyever commented Jun 28, 2025

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/rocm Trigger "default" config CI on ROCm ciflow/trunk Trigger trunk jobs on your pull request Merged module: core aten Related to change to the Core ATen opset module: cuda Related to torch.cuda, and CUDA support in general open source release notes: cuda release notes category topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants
0