Update faiss

This commit is contained in:
2026-09-16 17:43:32 +10:00
parent f16d0d5623
commit 300462d98f
+5 -2
View File
@@ -50,8 +50,11 @@ inline int __builtin_ctzll(uint64_t x) {
}
#endif
// cudatoolkit provides __builtin_ctz for NVCC >= 11.0
#if !defined(__CUDACC__) || __CUDACC_VER_MAJOR__ < 11
// cudatoolkit provides __builtin_ctz for NVCC >= 11.0.
// clang-cl provides __builtin_ctz as a real compiler builtin, so defining our
// own overload makes calls ambiguous (e.g. from boost/core/bit.hpp). Guard it
// with #ifndef __clang__ to match every sibling intrinsic in this file.
#if !defined(__clang__) && (!defined(__CUDACC__) || __CUDACC_VER_MAJOR__ < 11)
inline int __builtin_ctz(unsigned long x) {
unsigned long ret;
_BitScanForward(&ret, x);