Skip to content

Commit

Permalink
Merge branch 'infiniflow:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Ami11111 authored Jul 24, 2024
2 parents b17919e + 1b28b21 commit ece963f
Show file tree
Hide file tree
Showing 114 changed files with 5,987 additions and 578 deletions.
27 changes: 20 additions & 7 deletions benchmark/local_infinity/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ target_link_libraries(
event.a
c++.a
c++abi.a
snappy.a
${JEMALLOC_STATIC_LIB}
)

target_link_directories(infinity_benchmark PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(infinity_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/arrow/")
target_link_directories(infinity_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/snappy/")

# ########################################
# knn
Expand Down Expand Up @@ -62,11 +64,13 @@ target_link_libraries(
arrow.a
thrift.a
thriftnb.a
snappy.a
${JEMALLOC_STATIC_LIB}
)

target_link_directories(knn_import_benchmark BEFORE PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(knn_import_benchmark PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(knn_import_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/arrow/")
target_link_directories(knn_import_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/snappy/")

# query benchmark
add_executable(knn_query_benchmark
Expand Down Expand Up @@ -94,11 +98,13 @@ target_link_libraries(
arrow.a
thrift.a
thriftnb.a
snappy.a
${JEMALLOC_STATIC_LIB}
)

target_link_directories(knn_query_benchmark BEFORE PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(knn_query_benchmark PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(knn_query_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/arrow/")
target_link_directories(knn_query_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/snappy/")

# ########################################
# fulltext
Expand Down Expand Up @@ -128,11 +134,13 @@ target_link_libraries(
arrow.a
thrift.a
thriftnb.a
snappy.a
${JEMALLOC_STATIC_LIB}
)

target_link_directories(fulltext_benchmark BEFORE PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(fulltext_benchmark PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(fulltext_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/arrow/")
target_link_directories(fulltext_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/snappy/")

# ########################################
add_executable(sparse_benchmark
Expand Down Expand Up @@ -160,11 +168,13 @@ target_link_libraries(
arrow.a
thrift.a
thriftnb.a
snappy.a
${JEMALLOC_STATIC_LIB}
)

target_link_directories(sparse_benchmark BEFORE PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(sparse_benchmark PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(sparse_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/arrow/")
target_link_directories(sparse_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/snappy/")

add_executable(bmp_benchmark
./sparse/bmp_benchmark.cpp
Expand All @@ -191,11 +201,13 @@ target_link_libraries(
arrow.a
thrift.a
thriftnb.a
snappy.a
${JEMALLOC_STATIC_LIB}
)

target_link_directories(bmp_benchmark BEFORE PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(bmp_benchmark PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(bmp_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/arrow/")
target_link_directories(bmp_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/snappy/")

add_executable(hnsw_benchmark
./knn/hnsw_benchmark.cpp
Expand All @@ -216,18 +228,19 @@ target_link_libraries(
dl
lz4.a
atomic.a

c++.a
c++abi.a
parquet.a
arrow.a
thrift.a
thriftnb.a
snappy.a
${JEMALLOC_STATIC_LIB}
)

target_link_directories(hnsw_benchmark BEFORE PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(hnsw_benchmark PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(hnsw_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/arrow/")
target_link_directories(hnsw_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/snappy/")

# add_definitions(-march=native)
# add_definitions(-msse4.2 -mfma)
Expand Down
2 changes: 2 additions & 0 deletions benchmark/remote_infinity/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ target_include_directories(remote_query_benchmark PUBLIC "${CMAKE_SOURCE_DIR}/th
target_include_directories(remote_query_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/thrift/")
target_link_directories(remote_query_benchmark PUBLIC "${CMAKE_BINARY_DIR}/lib")
target_link_directories(remote_query_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/arrow/")
target_link_directories(remote_query_benchmark PUBLIC "${CMAKE_BINARY_DIR}/third_party/snappy/")

target_link_libraries(
remote_query_benchmark
Expand All @@ -32,6 +33,7 @@ target_link_libraries(
c++abi.a
parquet.a
arrow.a
snappy.a
${JEMALLOC_STATIC_LIB}
)

Expand Down
Loading

0 comments on commit ece963f

Please sign in to comment.