Skip to content

Commit db6ff2e

Browse files
borrrdenfacebook-github-bot
authored andcommitted
Workaround for missing intrinsic on gcc < 9 (facebookresearch#3481)
Summary: Rebased branch for facebookresearch#3420 Pull Request resolved: facebookresearch#3481 Reviewed By: mdouze Differential Revision: D57830230 Pulled By: junjieqi fbshipit-source-id: a93fb3cc53f11245faec891a9590b5e849dbf3b9
1 parent 6e423cc commit db6ff2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

faiss/impl/code_distance/code_distance-avx2.h

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
#include <faiss/impl/ProductQuantizer.h>
1717
#include <faiss/impl/code_distance/code_distance-generic.h>
1818

19+
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78782
20+
#if defined(__GNUC__) && __GNUC__ < 9
21+
#define _mm_loadu_si64(x) (_mm_loadl_epi64((__m128i_u*)x))
22+
#endif
23+
1924
namespace {
2025

2126
inline float horizontal_sum(const __m128 v) {

0 commit comments

Comments
 (0)