Skip to content

Commit 615c17e

Browse files
sqi-mtfacebook-github-bot
authored andcommitted
Add missing #include in code_distance-sve.h (#4219)
Summary: Pull Request resolved: #4219 `code_distance-sve.h` references `PQDecoder8` but doesn't include the header. The issue is revealed by D68784260 which removed some includes from a header that indirectly included `ProductQuantizer.h` ``` headers/faiss/impl/code_distance/code_distance-sve.h:74:45: error: unknown type name 'PQDecoder8'; did you mean 'PQDecoderT'? 74 | std::enable_if_t<std::is_same_v<PQDecoderT, PQDecoder8>, float> inline distance_single_code_sve( | ^~~~~~~~~~ | PQDecoderT ``` Reviewed By: ddrcoder Differential Revision: D70433576 fbshipit-source-id: 12945b16003a3d6a995b18ffe9798179ecf826f4
1 parent eab52af commit 615c17e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

faiss/impl/code_distance/code_distance-sve.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <tuple>
1515
#include <type_traits>
1616

17+
#include <faiss/impl/ProductQuantizer.h>
1718
#include <faiss/impl/code_distance/code_distance-generic.h>
1819

1920
namespace faiss {
@@ -48,7 +49,7 @@ static inline void distance_codes_kernel(
4849
partialSum = svadd_f32_m(pg, partialSum, collected);
4950
}
5051

51-
static float distance_single_code_sve_for_small_m(
52+
static inline float distance_single_code_sve_for_small_m(
5253
// the product quantizer
5354
const size_t M,
5455
// precomputed distances, layout (M, ksub)

0 commit comments

Comments
 (0)