Skip to content

Commit

Permalink
unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
divyegala committed Feb 25, 2025
1 parent 1e4d2e7 commit 620b7ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/neighbors/detail/hnsw.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ void search(raft::resources const& res,
idx.get_index());
auto num_threads = params.num_threads == 0 ? omp_get_max_threads() : params.num_threads;

#pragma omp parallel for num_threads(params.num_threads)
#pragma omp parallel for num_threads(num_threads)
for (int64_t i = 0; i < queries.extent(0); ++i) {
get_search_knn_results(hnswlib_index,
queries.data_handle() + i * queries.extent(1),
Expand Down

0 comments on commit 620b7ed

Please sign in to comment.