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

Use rmm allocator in CAGRA prune #1503

Merged
merged 9 commits into from
May 12, 2023

Conversation

enp1s0
Copy link
Member

@enp1s0 enp1s0 commented May 10, 2023

This PR modifies the CAGRA prune function to use rmm allocator instead of a custom memory allocator. And also removes the multi-GPU functionality that is not suitable for the RAFT policy.

rel: #1461

@enp1s0 enp1s0 requested a review from a team as a code owner May 10, 2023 07:09
@github-actions github-actions bot added the cpp label May 10, 2023
@enp1s0 enp1s0 added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels May 10, 2023
@enp1s0 enp1s0 self-assigned this May 10, 2023
@enp1s0
Copy link
Member Author

enp1s0 commented May 10, 2023

@tfeher Can you review the code and let me know if there are any problems?

Copy link
Contributor

@tfeher tfeher left a comment

Choose a reason for hiding this comment

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

Thanks @enp1s0 for the PR! It looks good overall, I have just a few smaller comments.

cpp/include/raft/neighbors/detail/cagra/graph_core.cuh Outdated Show resolved Hide resolved
cpp/include/raft/neighbors/detail/cagra/graph_core.cuh Outdated Show resolved Hide resolved
cpp/include/raft/neighbors/detail/cagra/graph_core.cuh Outdated Show resolved Hide resolved
cpp/include/raft/neighbors/detail/cagra/graph_core.cuh Outdated Show resolved Hide resolved
cpp/include/raft/neighbors/detail/cagra/graph_core.cuh Outdated Show resolved Hide resolved
cpp/include/raft/neighbors/detail/cagra/graph_core.cuh Outdated Show resolved Hide resolved
cpp/include/raft/neighbors/detail/cagra/graph_core.cuh Outdated Show resolved Hide resolved
cpp/include/raft/neighbors/detail/cagra/graph_core.cuh Outdated Show resolved Hide resolved
cpp/include/raft/neighbors/detail/cagra/graph_core.cuh Outdated Show resolved Hide resolved
cpp/include/raft/neighbors/detail/cagra/graph_core.cuh Outdated Show resolved Hide resolved
@enp1s0
Copy link
Member Author

enp1s0 commented May 11, 2023

Thanks @tfeher for your review! I have modified the issues you have pointed out.

Copy link
Contributor

@tfeher tfeher left a comment

Choose a reason for hiding this comment

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

Thanks @enp1s0 for addressing the issues! The PR looks good to me.

@cjnolet
Copy link
Member

cjnolet commented May 12, 2023

/merge

@rapids-bot rapids-bot bot merged commit b32cd60 into rapidsai:branch-23.06 May 12, 2023
rapids-bot bot pushed a commit that referenced this pull request Jun 2, 2023
This PR changes CAGRA `knn_graph_sort` function to use `raft::util::bitnic_sort` instead of a custom sorting function.

Rel: #1503 (comment)

Authors:
  - tsuki (https://github.com/enp1s0)
  - Corey J. Nolet (https://github.com/cjnolet)

Approvers:
  - Tamas Bela Feher (https://github.com/tfeher)

URL: #1550
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp 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