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

USearch HNSW index for ANN search #53447

Merged
merged 22 commits into from
Aug 21, 2023
Merged

USearch HNSW index for ANN search #53447

merged 22 commits into from
Aug 21, 2023

Conversation

davvard
Copy link
Contributor

@davvard davvard commented Aug 15, 2023

Fixes #52552

This PR integrates USearch that implements HNSW approximate nearest neighbor search. The code and SQL interface is similar to the existing Annoy index. It can be easily extended in future to support further metrics and allow on-the-fly quantization.

Changelog category (leave one):

  • New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md)

Add experimental support for HNSW as approximate neighbor search method.

Documentation entry for user-facing changes

  • [ X ] Documentation is written (mandatory for new features)

@CLAassistant
Copy link

CLAassistant commented Aug 15, 2023

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ rschu1ze
✅ davvard
❌ ashvardanian
You have signed the CLA already but the status is still pending? Let us recheck it.

@rschu1ze rschu1ze self-assigned this Aug 15, 2023
@robot-ch-test-poll4 robot-ch-test-poll4 added the submodule changed At least one submodule changed in this PR. label Aug 15, 2023
@robot-ch-test-poll4
Copy link
Contributor

robot-ch-test-poll4 commented Aug 15, 2023

This is an automated comment for commit 2c33051 with description of existing statuses. It's updated for the latest CI running
The full report is available here
The overall status of the commit is 🔴 failure

Check nameDescriptionStatus
AST fuzzerRuns randomly generated queries to catch program errors. The build type is optionally given in parenthesis. If it fails, ask a maintainer for help🟢 success
CI runningA meta-check that indicates the running CI. Normally, it's in success or pending state. The failed status indicates some problems with the PR🟢 success
ClickHouse build checkBuilds ClickHouse in various configurations for use in further steps. You have to fix the builds that fail. Build logs often has enough information to fix the error, but you might have to reproduce the failure locally. The cmake options can be found in the build log, grepping for cmake. Use these options and follow the general build process🟢 success
Compatibility checkChecks that clickhouse binary runs on distributions with old libc versions. If it fails, ask a maintainer for help🟢 success
Docker image for serversThe check to build and optionally push the mentioned image to docker hub🟢 success
Docs CheckBuilds and tests the documentation🟢 success
Fast testNormally this is the first check that is ran for a PR. It builds ClickHouse and runs most of stateless functional tests, omitting some. If it fails, further checks are not started until it is fixed. Look at the report to see which tests fail, then reproduce the failure locally as described here🟢 success
Flaky testsChecks if new added or modified tests are flaky by running them repeatedly, in parallel, with more randomization. Functional tests are run 100 times with address sanitizer, and additional randomization of thread scheduling. Integrational tests are run up to 10 times. If at least once a new test has failed, or was too long, this check will be red. We don't allow flaky tests, read the doc🟢 success
Install packagesChecks that the built packages are installable in a clear environment🟢 success
Integration testsThe integration tests report. In parenthesis the package type is given, and in square brackets are the optional part/total tests🟢 success
Mergeable CheckChecks if all other necessary checks are successful🟢 success
Performance ComparisonMeasure changes in query performance. The performance test report is described in detail here. In square brackets are the optional part/total tests🟢 success
Push to DockerhubThe check for building and pushing the CI related docker images to docker hub🟢 success
SQLTestThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS🟢 success
SQLancerFuzzing tests that detect logical bugs with SQLancer tool🔴 failure
SqllogicRun clickhouse on the sqllogic test set against sqlite and checks that all statements are passed🟢 success
Stateful testsRuns stateful functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc🟢 success
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc🟢 success
Stress testRuns stateless functional tests concurrently from several clients to detect concurrency-related errors🟢 success
Style CheckRuns a set of checks to keep the code style clean. If some of tests failed, see the related log from the report🟢 success
Unit testsRuns the unit tests for different release types🟢 success
Upgrade checkRuns stress tests on server version from last release and then tries to upgrade it to the version from the PR. It checks if the new server can successfully startup without any errors, crashes or sanitizer asserts🔴 failure

@rschu1ze rschu1ze added the can be tested Allows running workflows for external contributors label Aug 15, 2023
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-feature Pull request with new product feature label Aug 15, 2023
src/Storages/MergeTree/MergeTreeIndexHnsw.cpp Outdated Show resolved Hide resolved
src/Storages/MergeTree/MergeTreeIndexHnsw.cpp Outdated Show resolved Hide resolved
@ashvardanian
Copy link
Contributor

@rschu1ze, have you by any chance saved the error messages from RISC-V builds - the ones that are related to half-precision floats? We have a compilation flag, that allows switching to a more hardware-friendly implementation.

PS: Will extend documentation soon.

@rschu1ze
Copy link
Member

@rschu1ze, have you by any chance saved the error messages from RISC-V builds - the ones that are related to half-precision floats? We have a compilation flag, that allows switching to a more hardware-friendly implementation.

PS: Will extend documentation soon.

Couldn't find them anymore in our CI.

But to repro the error message locally, do the following:

  • checkout this PR
  • remove the exclusion of RISCV in contrib/CMakeLists.txt
  • comment out line set (LINKER_NAME "riscv64-linux-gnu-ld.bfd" CACHE STRING "Linker name" FORCE) in cmake/linux/toolchain-riscv64.cmake (didn't manage to setup this linker on my system quickly, but we don't need the linker for the repro anyways)
  • mkdir build, cd build, cmake -DCMAKE_BUILD_TYPE=None -DCMAKE_TOOLCHAIN_FILE=../cmake/linux/toolchain-riscv64.cmake -DCMAKE_C_COMPILER=clang-16 -DCMAKE_CXX_COMPILER=clang++-16 .., ninja src/CMakeFiles/dbms.dir/Storages/MergeTree/MergeTreeIndexUSearch.cpp.o
-- Build files have been written to: /home/ubuntu/repo/ch2/build_riscv
[0/2] Re-checking globbed directories...
[2/2] Building CXX object src/CMakeFiles/dbms.dir/Storages/MergeTree/MergeTreeIndexUSearch.cpp.o
FAILED: src/CMakeFiles/dbms.dir/Storages/MergeTree/MergeTreeIndexUSearch.cpp.o
/usr/bin/ccache /usr/bin/clang++-16 --target=riscv64-linux-gnu --sysroot=/home/ubuntu/repo/ch2/cmake/linux/../../contrib/sysroot/linux-riscv64 -DANNOYLIB_MULTITHREADED_BUILD -DAWS_SDK_VERSION_MAJOR=1 -DAWS_SDK_VERSION_MINOR=10 -DAWS_SDK_VERSION_PATCH=36 -DBOOST_ASIO_HAS_STD_INVOKE_RESULT=1 -DBOOST_ASIO_STANDALONE=1 -DCONFIGDIR=\"\" -DDUMMY_BACKTRACE -DENABLE_ANNOY -DENABLE_MULTITARGET_CODE=1 -DENABLE_USE
ARCH -DHAVE_CONFIG_H -DHAVE_FUTIMESAT=1 -DHAVE_ICONV=1 -DHAVE_LINUX_FS_H=1 -DHAVE_LINUX_TYPES_H=1 -DHAVE_LZMA_H=1 -DHAVE_STRUCT_STAT_ST_MTIM_TV_NSEC=1 -DHAVE_SYS_STATFS_H=1 -DHAVE_ZLIB_H=1 -DINCBIN_SILENCE_BITCODE_WARNING -DLIBSASL_EXPORTS=1 -DLZ4_DISABLE_DEPRECATE_WARNINGS=1 -DLZ4_FAST_DEC_LOOP=1 -DMAJOR_IN_SYSMACROS=1 -DOBSOLETE_CRAM_ATTR=1 -DOBSOLETE_DIGEST_ATTR=1 -DPLUGINDIR=\"\" -DPOCO_ENABLE_CPP11
-DPOCO_HAVE_FD_EPOLL -DPOCO_OS_FAMILY_UNIX -DSASLAUTHD_CONF_FILE_DEFAULT=\"\" -DSNAPPY_CODEC_AVAILABLE -DSTD_EXCEPTION_HAS_STACK_TRACE=1 -DWITH_COVERAGE=0 -DWITH_GZFILEOP -DZLIB_COMPAT -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -I/home/ubuntu/repo/ch2/build_riscv/includes/configs -I/home/ubuntu/repo/ch2/src -I/home/ubuntu/repo/ch2/build_riscv/src -I/home/ubuntu/repo/ch2/build_riscv/src/Core/include -I/ho
me/ubuntu/repo/ch2/base/base/.. -I/home/ubuntu/repo/ch2/build_riscv/base/base/.. -I/home/ubuntu/repo/ch2/contrib/cctz/include -I/home/ubuntu/repo/ch2/base/pcg-random/. -I/home/ubuntu/repo/ch2/contrib/libfiu/libfiu -I/home/ubuntu/repo/ch2/contrib/miniselect/include -I/home/ubuntu/repo/ch2/contrib/zstd/lib -I/home/ubuntu/repo/ch2/contrib/libarchive-cmake -I/home/ubuntu/repo/ch2/contrib/libarchive/libarchiv
e -I/home/ubuntu/repo/ch2/build_riscv/contrib/cyrus-sasl-cmake -I/home/ubuntu/repo/ch2/contrib/lz4/lib -isystem /home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include -isystem /home/ubuntu/repo/ch2/contrib/llvm-project/libcxxabi/include -isystem /home/ubuntu/repo/ch2/contrib/libunwind/include -isystem /home/ubuntu/repo/ch2/contrib/libdivide-cmake/. -isystem /home/ubuntu/repo/ch2/contrib/libdivide -isy
stem /home/ubuntu/repo/ch2/contrib/jemalloc-cmake/include -isystem /home/ubuntu/repo/ch2/contrib/abseil-cpp -isystem /home/ubuntu/repo/ch2/contrib/croaring/cpp -isystem /home/ubuntu/repo/ch2/contrib/croaring/include -isystem /home/ubuntu/repo/ch2/contrib/sparsehash-c11 -isystem /home/ubuntu/repo/ch2/contrib/incbin -isystem /home/ubuntu/repo/ch2/contrib/cityhash102/include -isystem /home/ubuntu/repo/ch2/c
ontrib/boost -isystem /home/ubuntu/repo/ch2/base/poco/Net/include -isystem /home/ubuntu/repo/ch2/base/poco/Foundation/include -isystem /home/ubuntu/repo/ch2/base/poco/NetSSL_OpenSSL/include -isystem /home/ubuntu/repo/ch2/base/poco/Crypto/include -isystem /home/ubuntu/repo/ch2/contrib/boringssl/include -isystem /home/ubuntu/repo/ch2/base/poco/Util/include -isystem /home/ubuntu/repo/ch2/base/poco/JSON/incl
ude -isystem /home/ubuntu/repo/ch2/base/poco/XML/include -isystem /home/ubuntu/repo/ch2/contrib/replxx/include -isystem /home/ubuntu/repo/ch2/contrib/fmtlib-cmake/../fmtlib/include -isystem /home/ubuntu/repo/ch2/contrib/magic_enum/include -isystem /home/ubuntu/repo/ch2/contrib/double-conversion -isystem /home/ubuntu/repo/ch2/contrib/dragonbox/include -isystem /home/ubuntu/repo/ch2/contrib/re2 -isystem /h
ome/ubuntu/repo/ch2/build_riscv/contrib/re2-cmake -isystem /home/ubuntu/repo/ch2/contrib/zlib-ng -isystem /home/ubuntu/repo/ch2/build_riscv/contrib/zlib-ng-cmake -isystem /home/ubuntu/repo/ch2/contrib/pdqsort -isystem /home/ubuntu/repo/ch2/contrib/xz/src/liblzma/api -isystem /home/ubuntu/repo/ch2/contrib/aws/src/aws-cpp-sdk-core/include -isystem /home/ubuntu/repo/ch2/build_riscv/contrib/aws-cmake/include
 -isystem /home/ubuntu/repo/ch2/contrib/aws/generated/src/aws-cpp-sdk-s3/include -isystem /home/ubuntu/repo/ch2/contrib/aws-c-auth/include -isystem /home/ubuntu/repo/ch2/contrib/aws-c-common/include -isystem /home/ubuntu/repo/ch2/contrib/aws-c-io/include -isystem /home/ubuntu/repo/ch2/contrib/aws-crt-cpp/include -isystem /home/ubuntu/repo/ch2/contrib/aws-c-mqtt/include -isystem /home/ubuntu/repo/ch2/cont
rib/aws-c-sdkutils/include -isystem /home/ubuntu/repo/ch2/contrib/snappy -isystem /home/ubuntu/repo/ch2/build_riscv/contrib/snappy-cmake -isystem /home/ubuntu/repo/ch2/contrib/libbcrypt -isystem /home/ubuntu/repo/ch2/contrib/msgpack-c/include -isystem /home/ubuntu/repo/ch2/build_riscv/contrib/liburing/src/include-compat -isystem /home/ubuntu/repo/ch2/build_riscv/contrib/liburing/src/include -isystem /hom
e/ubuntu/repo/ch2/contrib/liburing/src/include -isystem /home/ubuntu/repo/ch2/contrib/fast_float/include -isystem /home/ubuntu/repo/ch2/contrib/librdkafka-cmake/include -isystem /home/ubuntu/repo/ch2/contrib/librdkafka/src -isystem /home/ubuntu/repo/ch2/build_riscv/contrib/librdkafka-cmake/auxdir -isystem /home/ubuntu/repo/ch2/contrib/cppkafka/include -isystem /home/ubuntu/repo/ch2/contrib/nats-io/src -i
system /home/ubuntu/repo/ch2/contrib/nats-io/src/adapters -isystem /home/ubuntu/repo/ch2/contrib/nats-io/src/include -isystem /home/ubuntu/repo/ch2/contrib/nats-io/src/unix -isystem /home/ubuntu/repo/ch2/contrib/libuv/include -isystem /home/ubuntu/repo/ch2/contrib/krb5/src/include -isystem /home/ubuntu/repo/ch2/build_riscv/contrib/krb5-cmake/include -isystem /home/ubuntu/repo/ch2/contrib/NuRaft/include -
isystem /home/ubuntu/repo/ch2/base/poco/MongoDB/include -isystem /home/ubuntu/repo/ch2/base/poco/Redis/include -isystem /home/ubuntu/repo/ch2/contrib/icu/icu4c/source/i18n -isystem /home/ubuntu/repo/ch2/contrib/icu/icu4c/source/common -isystem /home/ubuntu/repo/ch2/contrib/capnproto/c++/src -isystem /home/ubuntu/repo/ch2/build_riscv/contrib/avro-cmake/include -isystem /home/ubuntu/repo/ch2/contrib/avro/l
ang/c++/api -isystem /home/ubuntu/repo/ch2/contrib/google-protobuf/src -isystem /home/ubuntu/repo/ch2/contrib/azure/sdk/core/azure-core/inc -isystem /home/ubuntu/repo/ch2/contrib/azure/sdk/identity/azure-identity/inc -isystem /home/ubuntu/repo/ch2/contrib/azure/sdk/storage/azure-storage-common/inc -isystem /home/ubuntu/repo/ch2/contrib/azure/sdk/storage/azure-storage-blobs/inc -isystem /home/ubuntu/repo/
ch2/contrib/s2geometry/src -isystem /home/ubuntu/repo/ch2/contrib/AMQP-CPP/include -isystem /home/ubuntu/repo/ch2/contrib/AMQP-CPP -isystem /home/ubuntu/repo/ch2/contrib/sqlite-amalgamation -isystem /home/ubuntu/repo/ch2/contrib/rocksdb/include -isystem /home/ubuntu/repo/ch2/contrib/libpqxx/include -isystem /home/ubuntu/repo/ch2/contrib/libpq -isystem /home/ubuntu/repo/ch2/contrib/libpq/include -isystem
/home/ubuntu/repo/ch2/contrib/libstemmer_c/include -isystem /home/ubuntu/repo/ch2/contrib/wordnet-blast -isystem /home/ubuntu/repo/ch2/contrib/lemmagen-c/include -isystem /home/ubuntu/repo/ch2/contrib/ulid-c/include -isystem /home/ubuntu/repo/ch2/contrib/simdjson/include -isystem /home/ubuntu/repo/ch2/contrib/rapidjson/include -isystem /home/ubuntu/repo/ch2/contrib/consistent-hashing -isystem /home/ubunt
u/repo/ch2/contrib/annoy/src -isystem /home/ubuntu/repo/ch2/contrib/FP16/include -isystem /home/ubuntu/repo/ch2/contrib/robin-map/include -isystem /home/ubuntu/repo/ch2/contrib/SimSIMD-map/include -isystem /home/ubuntu/repo/ch2/contrib/usearch/include --gcc-toolchain=/home/ubuntu/repo/ch2/cmake/linux/../../contrib/sysroot/linux-riscv64 -std=c++20 -fdiagnostics-color=always -Xclang -fuse-ctor-homing -Wno-
enum-constexpr-conversion -fsized-deallocation  -gdwarf-aranges -pipe -fasynchronous-unwind-tables -ffile-prefix-map=/home/ubuntu/repo/ch2=. -falign-functions=32 -fdiagnostics-absolute-paths -fstrict-vtable-pointers -Wall -Wextra -Wframe-larger-than=65536 -Weverything -Wpedantic -Wno-zero-length-array -Wno-c++98-compat-pedantic -Wno-c++98-compat -Wno-c++20-compat -Wno-sign-conversion -Wno-implicit-int-co
nversion -Wno-implicit-int-float-conversion -Wno-ctad-maybe-unsupported -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-double-promotion -Wno-exit-time-destructors -Wno-float-equal -Wno-global-constructors -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-padded -Wno-switch-enum -Wno-undefined-func-template -Wno-unused-template -Wno-vla -Wno-weak-template-vtables -Wno-
weak-vtables -Wno-thread-safety-negative -Wno-enum-constexpr-conversion -Wno-unsafe-buffer-usage -O2 -g -DNDEBUG -O3 -g -gdwarf-4  -fno-pie   -D OS_LINUX -Werror -nostdinc++ -std=c++2b -MD -MT src/CMakeFiles/dbms.dir/Storages/MergeTree/MergeTreeIndexUSearch.cpp.o -MF src/CMakeFiles/dbms.dir/Storages/MergeTree/MergeTreeIndexUSearch.cpp.o.d -o src/CMakeFiles/dbms.dir/Storages/MergeTree/MergeTreeIndexUSearc
h.cpp.o -c /home/ubuntu/repo/ch2/src/Storages/MergeTree/MergeTreeIndexUSearch.cpp
In file included from /home/ubuntu/repo/ch2/src/Storages/MergeTree/MergeTreeIndexUSearch.cpp:3:
In file included from /home/ubuntu/repo/ch2/src/Storages/MergeTree/MergeTreeIndexUSearch.h:5:
In file included from /home/ubuntu/repo/ch2/src/Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.h:3:
In file included from /home/ubuntu/repo/ch2/src/Storages/MergeTree/MergeTreeIndices.h:3:
In file included from /home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/string:551:
In file included from /home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/string_view:223:
In file included from /home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/functional:518:
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: error: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Werror,-Wpass-failed=transform-warning]
    static _Rp __call_impl(const __policy_storage* __buf,
               ^
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:879:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:904:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: error: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Werror,-Wpass-failed=transform-warning]
    static _Rp __call_impl(const __policy_storage* __buf,
               ^
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:904:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:1099:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: error: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Werror,-Wpass-failed=transform-warning]
    static _Rp __call_impl(const __policy_storage* __buf,
               ^
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:1099:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:879:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: error: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Werror,-Wpass-failed=transform-warning]
    static _Rp __call_impl(const __policy_storage* __buf,
               ^
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:879:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:904:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: error: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Werror,-Wpass-failed=transform-warning]
    static _Rp __call_impl(const __policy_storage* __buf,
               ^
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:904:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:904:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: error: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Werror,-Wpass-failed=transform-warning]
    static _Rp __call_impl(const __policy_storage* __buf,
               ^
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:904:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:1123:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: error: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Werror,-Wpass-failed=transform-warning]
    static _Rp __call_impl(const __policy_storage* __buf,
               ^
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:1123:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:934:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: error: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Werror,-Wpass-failed=transform-warning]
    static _Rp __call_impl(const __policy_storage* __buf,
               ^
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:934:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:934:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: error: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Werror,-Wpass-failed=transform-warning]
    static _Rp __call_impl(const __policy_storage* __buf,
               ^
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:934:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: note: could not determine the original source location for ./contrib/usearch/include/usearch/index_plugins.hpp:934:9
/home/ubuntu/repo/ch2/contrib/llvm-project/libcxx/include/__functional/function.h:710:16: error: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Werror,-Wpass-failed=transform-warning]
    static _Rp __call_impl(const __policy_storage* __buf,
[...]

@rschu1ze rschu1ze changed the title Add: USearch Integration USearch HNSW index for ANN search Aug 18, 2023
@rschu1ze rschu1ze merged commit a20ceef into ClickHouse:master Aug 21, 2023
279 of 281 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can be tested Allows running workflows for external contributors pr-feature Pull request with new product feature submodule changed At least one submodule changed in this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Vector Search HNSW Index
7 participants