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

KNN select-top-k variants #551

Merged
merged 43 commits into from
Mar 30, 2022

Conversation

achirkin
Copy link
Contributor

@achirkin achirkin commented Mar 10, 2022

Integrate two new implementations for knn's select_k function.

@achirkin achirkin added 2 - In Progress Currenty a work in progress improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Mar 10, 2022
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.

Hi Artem, thanks for this PR! Although it is still a work in progress, I think it makes sense to give you an early feedback. Here are my first batch of comments.

cpp/include/raft/spatial/knn/knn.hpp Outdated Show resolved Hide resolved
cpp/include/raft/spatial/knn/knn.hpp Outdated Show resolved Hide resolved
cpp/test/spatial/selection.cu Outdated Show resolved Hide resolved
cpp/test/spatial/selection.cu Outdated Show resolved Hide resolved
cpp/include/raft/spatial/knn/knn.cuh Show resolved Hide resolved
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.

Hi Artem, here is a second batch of comments.

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.

I have went through the raidx top-k kernels, here are my comments.

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.

Hi Artem, I have finished my first review round. Overall it looks good, but as my comments indicate, some more documentation is required at certain places.

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 Artem for addressing the issues and improving the documentation! I had second look at the bitonic sort, here are a few additional comments.

RAFT v22.04 Release automation moved this from PR-WIP to PR-Needs review Mar 25, 2022
@achirkin achirkin added 3 - Ready for Review and removed 2 - In Progress Currenty a work in progress labels Mar 25, 2022
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.

Hi Artem, I had a second look on radix_topk. It looks good overall, just found a few minor things.

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.

I have finished a second review. Please find a few more suggestions for improving the docs. Apart from these pending items, the PR looks good to me.

@achirkin achirkin requested review from tfeher and cjnolet March 28, 2022 06:24
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 Artem for addressing the issues! Apart from two more nitpicks, the PR looks good to me. Pre-approving.

Copy link
Member

@cjnolet cjnolet left a comment

Choose a reason for hiding this comment

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

Thanks Artem! Just one little thing from me this time around. I don't see any obvious things in these changes that would break cuml downstream but a PR should be opened and pinned to this branch before merging just to make sure.

cpp/bench/spatial/selection.cu Outdated Show resolved Hide resolved
@cjnolet
Copy link
Member

cjnolet commented Mar 28, 2022

rerun tests

RAFT v22.04 Release automation moved this from PR-Needs review to PR-Reviewer approved Mar 30, 2022
Copy link
Member

@cjnolet cjnolet left a comment

Choose a reason for hiding this comment

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

LGTM

@cjnolet
Copy link
Member

cjnolet commented Mar 30, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit bde2584 into rapidsai:branch-22.04 Mar 30, 2022
RAFT v22.04 Release automation moved this from PR-Reviewer approved to Done Mar 30, 2022
@achirkin achirkin deleted the enh-knn-topk-variants branch March 31, 2022 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review CMake cpp improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants