Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: fix build on m1 macbook && re-enable clang-tidy checks #9500

Merged
merged 5 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 5 additions & 1 deletion 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,6 @@
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpass-failed"

#include <type_traits>
#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()