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

IVF-PQ: tweak launch configuration #1069

Merged

Conversation

achirkin
Copy link
Contributor

@achirkin achirkin commented Dec 5, 2022

Add one more criterion for reducing the block size when selecting the optimal launch configuration. This fixes a few benchmark cases where the performance has been slightly worse compared to the reference implementation.

@github-actions github-actions bot added the cpp label Dec 5, 2022
@achirkin achirkin added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change 2 - In Progress Currenty a work in progress labels Dec 5, 2022
@achirkin achirkin added 3 - Ready for Review and removed 2 - In Progress Currenty a work in progress labels Dec 8, 2022
@achirkin achirkin marked this pull request as ready for review December 8, 2022 08:35
@achirkin achirkin requested a review from a team as a code owner December 8, 2022 08:35
@achirkin
Copy link
Contributor Author

achirkin commented Dec 8, 2022

NB: with this update, there still were observed couple cases where the reference implementation was faster by 5-9%; in all of them the raft ivf-pq kernel was faster, and the slowdown came from the other part - select-top-k block kernel (selecting the candidate clusters for search).

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 the PR, it looks good to me.

@cjnolet
Copy link
Member

cjnolet commented Dec 8, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 7f87931 into rapidsai:branch-23.02 Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review cpp improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
Development

Successfully merging this pull request may close these issues.

3 participants