Skip to content

Commit d5460ad

Browse files
lyang24alexanderguzhva
authored andcommitted
sparse dsp optimization
Signed-off-by: Alexandr Guzhva <alexanderguzhva@gmail.com>
1 parent 987c05b commit d5460ad

14 files changed

Lines changed: 4830 additions & 7 deletions

File tree

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,13 @@ endif
6464
# which requires std::partial_ordering from <compare> (a C++20 feature).
6565
CONAN_SETTINGS := -s compiler.libcxx=$(LIBCXX) -s build_type=$(BUILD_TYPE) -s compiler.cppstd=20 -s:b compiler.cppstd=20
6666

67-
# DiskANN and liburing require libaio (Linux-only).
67+
# DiskANN is enabled for Linux builds. CONAN_BASE_FLAGS already contains
68+
# --build=missing, which builds liburing when it is present in the graph and
69+
# lacks a binary package. A separate --build=liburing pattern is unsafe with
70+
# Conan 1 because it is a hard error when a profile/option removes liburing
71+
# from the resolved graph.
6872
ifneq ($(UNAME_S),Darwin)
69-
CONAN_SETTINGS += -o \&:with_diskann=True
70-
ifndef WITH_GPU
71-
CONAN_INSTALL_FLAGS += --build=liburing
72-
endif
73+
CONAN_FLAGS += -o with_diskann=True
7374
endif
7475

7576
# GPU builds use cuVS.

benchmark/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ endif()
7070
benchmark_test(gen_hdf5_file hdf5/gen_hdf5_file.cpp)
7171
benchmark_test(gen_fbin_file hdf5/gen_fbin_file.cpp)
7272

73+
# Sparse DSP benchmark (standalone, no HDF5/GTest required)
74+
add_executable(benchmark_sparse_dsp benchmark_sparse_dsp.cpp)
75+
target_link_libraries(benchmark_sparse_dsp knowhere)
76+
if(NOT APPLE)
77+
target_link_libraries(benchmark_sparse_dsp atomic)
78+
endif()
79+
install(TARGETS benchmark_sparse_dsp DESTINATION unittest)
80+
7381
# Sparse SIMD benchmark (x86_64 only, standalone, no HDF5 required)
7482
# Only build on x86_64/AMD64, skip on ARM/aarch64/arm64
7583
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|AMD64|amd64|X86_64)$")

0 commit comments

Comments
 (0)