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

CAGRA max_queries auto configuration #1613

Merged

Conversation

enp1s0
Copy link
Member

@enp1s0 enp1s0 commented Jun 23, 2023

This PR changes the behavior of max_queries in CAGRA.

In the search operation of CAGRA, a batch of queries is divided into several max_queries queries sub-batches and operated; by increasing max_queries, higher throughput can be obtained. However, if one forgets to set max_queries, the default value, 1, will be used, resulting in lower throughput. This is not user-friendly.

This PR modifies CAGRA to automatically set max_queries as the batch size by default.

An alternative way is to remove max_queries.

@enp1s0 enp1s0 requested a review from a team as a code owner June 23, 2023 05:44
@github-actions github-actions bot added the cpp label Jun 23, 2023
@enp1s0 enp1s0 added improvement Improvement / enhancement to an existing function breaking Breaking change and removed cpp labels Jun 23, 2023
@enp1s0 enp1s0 self-assigned this Jun 23, 2023
@github-actions github-actions bot added the cpp label Jun 27, 2023
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 to me.

@cjnolet
Copy link
Member

cjnolet commented Jul 3, 2023

/merge

@rapids-bot rapids-bot bot merged commit 104f3ba into rapidsai:branch-23.08 Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change cpp improvement Improvement / enhancement to an existing function
Projects
Development

Successfully merging this pull request may close these issues.

3 participants