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

Improve RBC eps-neighborhood query performance #2211

Merged
merged 13 commits into from
Mar 11, 2024
Prev Previous commit
Next Next commit
remove L2 cache flush
  • Loading branch information
mfoerste4 committed Mar 5, 2024
commit 1782558dc61f321aeb722e6b5811b5f03b35747b
8 changes: 0 additions & 8 deletions cpp/include/raft/spatial/knn/detail/ball_cover.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -416,14 +416,6 @@ void rbc_build_index(raft::resources const& handle,
BallCoverIndex<value_idx, value_t, value_int, matrix_idx>& index,
distance_func dfunc)
{
{
/** flush the L2 cache - Hopper at 50MB */
size_t l2_cache_size = 50 * 1024 * 1024;
auto scratch_buf_ = rmm::device_buffer(l2_cache_size * 3, resource::get_cuda_stream(handle));
RAFT_CUDA_TRY(cudaMemsetAsync(
scratch_buf_.data(), 0, scratch_buf_.size(), resource::get_cuda_stream(handle)));
}

ASSERT(!index.is_index_trained(), "index cannot be previously trained");

rmm::device_uvector<value_idx> R_knn_inds(index.m, resource::get_cuda_stream(handle));
Expand Down