From 5679d3ad42533e6f367fdd746b60e3b16fd692c7 Mon Sep 17 00:00:00 2001 From: lyang24 Date: Thu, 9 Apr 2026 16:08:46 -0700 Subject: [PATCH] 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 --- faiss/IndexHNSW.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faiss/IndexHNSW.cpp b/faiss/IndexHNSW.cpp index a0ff524c1..017dda615 100644 --- a/faiss/IndexHNSW.cpp +++ b/faiss/IndexHNSW.cpp @@ -1042,7 +1042,7 @@ void IndexHNSWCagra::search( std::vector nearest(n); std::vector nearest_d(n); -#pragma omp for +#pragma omp parallel for for (idx_t i = 0; i < n; i++) { std::unique_ptr dis( storage_distance_computer(this->storage));