Skip to content
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

Update primitives to better follow STL/thrust conventions in supporting predicate operations #4946

Merged
merged 16 commits into from
Mar 5, 2025

Conversation

seunghwak
Copy link
Contributor

STL/thrust algorithms that conditionally process array elements have naming convention including if (e.g. copy_if, transform_if, ...) and takes a separate predicate operator.

cuGraph C++ primitives have been taking a single operator that returns cuda::std::nullopt (to discard the result) and a valid cuda::std::optional object for elements to be processed.

This PR updates cuGraph C++ primitives to take a separate predicate operator and use if in primitive names to better follow STL/thrust convention.

Copy link

copy-pr-bot bot commented Feb 18, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@seunghwak seunghwak changed the title Update primitives to better follow STL/thrust conventions in supporting predicate operations [WIP] Update primitives to better follow STL/thrust conventions in supporting predicate operations Feb 18, 2025
@github-actions github-actions bot added the CMake label Feb 18, 2025
@seunghwak seunghwak added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Feb 25, 2025
@seunghwak seunghwak changed the title [WIP] Update primitives to better follow STL/thrust conventions in supporting predicate operations Update primitives to better follow STL/thrust conventions in supporting predicate operations Feb 25, 2025
@seunghwak seunghwak marked this pull request as ready for review February 25, 2025 19:49
@seunghwak seunghwak requested review from a team as code owners February 25, 2025 19:49
Copy link
Contributor

@KyleFromNVIDIA KyleFromNVIDIA left a comment

Choose a reason for hiding this comment

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

Approved trivial CMake changes

@ChuckHastings
Copy link
Collaborator

/merge

@rapids-bot rapids-bot bot merged commit 315049c into rapidsai:branch-25.04 Mar 5, 2025
79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake cuGraph improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants