Skip to content

Commit

Permalink
tests: fix build on m1 macbook && re-enable clang-tidy checks (#9500)
Browse files Browse the repository at this point in the history
ref #9032

Signed-off-by: Lloyd-Pottiger <[email protected]>

Co-authored-by: Lloyd-Pottiger <[email protected]>
  • Loading branch information
JaySon-Huang and Lloyd-Pottiger authored Sep 30, 2024
1 parent 2a198f1 commit 23f24ac
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ target_link_libraries(tiflash_vector_search
tiflash_contrib::usearch
tiflash_contrib::simsimd

fmt
fmt
)

target_link_libraries (dbms
Expand Down
5 changes: 5 additions & 0 deletions dbms/src/VectorSearch/SimSIMD.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@
#define SIMSIMD_DYNAMIC_DISPATCH 0

// Force enable all target features. We will do our own dynamic dispatch.
#if defined(__APPLE__)
#define SIMSIMD_TARGET_NEON 0
#define SIMSIMD_TARGET_SVE 0
#else
#define SIMSIMD_TARGET_NEON 1
#define SIMSIMD_TARGET_SVE 1
#endif
#define SIMSIMD_TARGET_HASWELL 1
#define SIMSIMD_TARGET_SKYLAKE 1
#define SIMSIMD_TARGET_ICE 1
Expand Down
7 changes: 7 additions & 0 deletions dbms/src/VectorSearch/USearch.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@
#define SIMSIMD_NATIVE_BF16 0

// Force enable all target features.
#if defined(__APPLE__)
#define SIMSIMD_TARGET_NEON 0
#define SIMSIMD_TARGET_SVE 0
#else
#define SIMSIMD_TARGET_NEON 1
#define SIMSIMD_TARGET_SVE 1
#endif
#define SIMSIMD_TARGET_HASWELL 1
#define SIMSIMD_TARGET_SKYLAKE 1
#define SIMSIMD_TARGET_ICE 1
Expand All @@ -34,7 +39,9 @@
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpass-failed"

#if !defined(__APPLE__)
#include <type_traits>
#endif
#include <usearch/index.hpp>
#include <usearch/index_dense.hpp>
#include <usearch/index_plugins.hpp>
Expand Down
1 change: 0 additions & 1 deletion release-centos7-llvm/scripts/run-clang-tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,5 +360,4 @@ def main():


if __name__ == '__main__':
sys.exit(0)# temporary skip clang-tidy
main()

0 comments on commit 23f24ac

Please sign in to comment.