Skip to content

Conversation

@atalman
Copy link
Contributor

@atalman atalman commented Sep 9, 2025

As suggested by #24464 (comment)

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request applies a patch to ensure compatibility with CUDA 13.0. The changes correctly replace the deprecated cub::Sum and cub::Max with cuda::std::plus and cuda::maximum respectively for CUDA builds, while maintaining the existing cub:: operations for ROCm builds. This is achieved by introducing AddOp and MaxOp type aliases. The implementation is consistent across all modified files and appears correct. I have no specific comments as the changes are well-executed.

@ProExpertProg
Copy link
Collaborator

ProExpertProg commented Sep 10, 2025

Have you tried building on CUDA 13.0 with this patch? If it works we can merge this.

Comment on lines 28 to 29
using AddOp = cuda::std::plus<>;
using MaxOp = cuda::maximum<>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems like maximum does not currently work on 12.8 so we should guard on the CUDA version here

@mergify mergify bot added the ci/build label Sep 10, 2025
@mergify
Copy link

mergify bot commented Sep 16, 2025

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @atalman.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Sep 16, 2025
@ProExpertProg
Copy link
Collaborator

Done in #24599

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