mirror of
https://github.com/facebookresearch/faiss.git
synced 2026-10-11 22:50:00 +00:00
HNSW Cagra base-level entrypoint sampling parallel (#5068)
Summary: fix bug to make parallel happens Pull Request resolved: https://github.com/facebookresearch/faiss/pull/5068 Reviewed By: junjieqi Differential Revision: D100213935 Pulled By: alibeklfc fbshipit-source-id: 31f4d8b05843d0b97f0539f69db0aebecb0063a8
This commit is contained in:
committed by
meta-codesync[bot]
parent
06ef481afa
commit
5679d3ad42
+1
-1
@@ -1042,7 +1042,7 @@ void IndexHNSWCagra::search(
|
||||
std::vector<storage_idx_t> nearest(n);
|
||||
std::vector<float> nearest_d(n);
|
||||
|
||||
#pragma omp for
|
||||
#pragma omp parallel for
|
||||
for (idx_t i = 0; i < n; i++) {
|
||||
std::unique_ptr<DistanceComputer> dis(
|
||||
storage_distance_computer(this->storage));
|
||||
|
||||
Reference in New Issue
Block a user