* feat: add hnsw-rabitq * undefine transform * support config rotator type * support sample_count * fix ut * refactor: update interface * refactor: update interface * update rabitq index params * fix interface update * fix searcher test * fix streamer test * streamer support bf and add more ut * rm env check * add collection ut * add schema check * add rabitq query param binding * add integration test * fix local_builder * cleanup dist calculator * add RaBitQ-Library submodule * cleanup rabitq converter/reformer * add files * disable build on mac * disable Feature_Optimize_HNSW_RABITQ * disable python/tests/test_collection_hnsw_rabitq.py:13 * check avx2/avx512 * fix refine * fix mac ci * add dimension check * fix mac ci * fix ci * add missing lib * fix centroids selection for Cosine/InnerProduct * rename hnsw-rabitq to hnsw_rabitq * address comments * fix compile * fix rabitqlib name * fix mac compile * check avx2/avx512 support * runtime check again compile-time * check AUTO_DETECT_ARCH * rm debug log * fix * rabitq use avx2 by default * add missing file * fix search_bf/group_by dist * address comments * fix typo * address comments * rabitq support disable id_map * address comments
43 lines
1.1 KiB
CMake
43 lines
1.1 KiB
CMake
|
|
include(${PROJECT_ROOT_DIR}/cmake/bazel.cmake)
|
|
include(${PROJECT_ROOT_DIR}/cmake/option.cmake)
|
|
|
|
if(APPLE)
|
|
set(APPLE_FRAMEWORK_LIBS
|
|
-framework CoreFoundation
|
|
-framework CoreGraphics
|
|
-framework CoreData
|
|
-framework CoreText
|
|
-framework Security
|
|
-framework Foundation
|
|
-Wl,-U,_MallocExtension_ReleaseFreeMemory
|
|
-Wl,-U,_ProfilerStart
|
|
-Wl,-U,_ProfilerStop
|
|
-Wl,-U,_RegisterThriftProtocol
|
|
)
|
|
endif()
|
|
|
|
file(GLOB ALL_TEST_SRCS *_test.cc)
|
|
foreach(CC_SRCS ${ALL_TEST_SRCS})
|
|
get_filename_component(CC_TARGET ${CC_SRCS} NAME_WE)
|
|
cc_gmock(
|
|
NAME ${CC_TARGET} STRICT
|
|
LIBS zvec_common
|
|
zvec_proto
|
|
zvec_sqlengine
|
|
zvec_ailego
|
|
core_metric
|
|
core_utility
|
|
core_quantizer
|
|
core_knn_hnsw core_knn_hnsw_sparse sparsehash
|
|
core_knn_flat core_knn_flat_sparse core_knn_ivf
|
|
core_knn_hnsw_rabitq core_mix_reducer
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
${CMAKE_DL_LIBS}
|
|
SRCS ${CC_SRCS}
|
|
INCS . ${PROJECT_ROOT_DIR}/src ${PROJECT_ROOT_DIR}/src/db ${PROJECT_ROOT_DIR}/src/db/common
|
|
LDFLAGS ${APPLE_FRAMEWORK_LIBS}
|
|
)
|
|
cc_test_suite(zvec_sqlengine ${CC_TARGET})
|
|
endforeach()
|