[BUG] called a variable which not passed to fucntion when performing RAFT_LOG_DEBUG macro

Open
#2,593 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
cpp

Research direction

Open raft/cpp/include/raft/neighbors/detail/cagra/cagra_search.cuh and inspect search_main_core around lines 92-94. Verify the RAFT_LOG_DEBUG call against the function parameters and confirm the CAGRA search code builds successfully after the issue is corrected.

Written by the indexing model from the issue text.

Description

bug

Describe the bug
on branch-24.04, in code file raft/cpp/include/raft/neighbors/detail/cagra/cagra_search.cuh, line 92-94
the index was not passed to this functions, but called on this line

template <typename DatasetDescriptorT, typename CagraSampleFilterT>
void search_main_core(
raft::resources const& res,
search_params params,
DatasetDescriptorT dataset_desc,
raft::device_matrix_view<const typename DatasetDescriptorT::INDEX_T, int64_t, row_major> graph,
raft::device_matrix_view<const typename DatasetDescriptorT::DATA_T, int64_t, row_major> queries,
raft::device_matrix_view<typename DatasetDescriptorT::INDEX_T, int64_t, row_major> neighbors,
raft::device_matrix_view<typename DatasetDescriptorT::DISTANCE_T, int64_t, row_major> distances,
CagraSampleFilterT sample_filter = CagraSampleFilterT())
{

RAFT_LOG_DEBUG("# dataset size = %lu, dim = %lu\n",
static_cast<size_t>(index.data().n_rows()),
static_cast<size_t>(index.data().dim()));

Dominant language
Cuda
Stars
1.1k
Forks
260
Avg merge
1d 18h
Merged PRs (30d)
21

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NVIDIA/raft

All issues in NVIDIA/raft

Similar issues

More Machine Learning issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.