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:
lyang24
2026-04-09 16:08:46 -07:00
committed by meta-codesync[bot]
parent 06ef481afa
commit 5679d3ad42
+1 -1
View File
@@ -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));