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

Replace all uses of thrust::optional with cuda::std::optional #4891

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

miscco
Copy link
Contributor

@miscco miscco commented Jan 23, 2025

thrust::optional is being deprecated and will be removed in a future version of CCCL

@miscco miscco requested a review from a team as a code owner January 23, 2025 19:07
Copy link
Collaborator

@ChuckHastings ChuckHastings left a comment

Choose a reason for hiding this comment

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

Thanks for this update.

I identified several files, tagged with comments, where it looks like we could just drop the include file rather than changing it. If you're willing to make those changes (and they compile) that would be great. If you'd rather we do that, I can put it on the list to review those changes in 25.04.

cpp/include/cugraph/detail/decompress_edge_partition.cuh Outdated Show resolved Hide resolved
cpp/src/community/detail/maximal_independent_moves.cuh Outdated Show resolved Hide resolved
cpp/src/community/detail/refine_impl.cuh Outdated Show resolved Hide resolved
cpp/src/components/mis_impl.cuh Outdated Show resolved Hide resolved
cpp/src/prims/detail/partition_v_frontier.cuh Outdated Show resolved Hide resolved
cpp/src/sampling/detail/sampling_utils.hpp Outdated Show resolved Hide resolved
@ChuckHastings ChuckHastings added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jan 23, 2025
@miscco
Copy link
Contributor Author

miscco commented Jan 24, 2025

@ChuckHastings Thanks a lot for the review.

I went ahead and checked those files. It seems that those were actually using std::optional So I replaced the include with <optional> when appropriate and verified that each file properly includes <cuda/std/optional> when needed

Copy link
Contributor

@seunghwak seunghwak left a comment

Choose a reason for hiding this comment

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

LGTM

@ChuckHastings
Copy link
Collaborator

/merge

@rapids-bot rapids-bot bot merged commit b64b04f into rapidsai:branch-25.02 Jan 28, 2025
83 checks passed
@seunghwak seunghwak mentioned this pull request Jan 28, 2025
@miscco miscco deleted the replace_thrust_optional branch January 28, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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