Skip to content

Commit

Permalink
opensource neon code (#137)
Browse files Browse the repository at this point in the history
* opensource neon code

Signed-off-by: Yusheng.Ma <[email protected]>

* opensource neon code

Signed-off-by: Yusheng.Ma <[email protected]>

---------

Signed-off-by: Yusheng.Ma <[email protected]>
  • Loading branch information
Presburger authored Oct 12, 2023
1 parent 0e67c78 commit 915ba68
Show file tree
Hide file tree
Showing 5 changed files with 717 additions and 15 deletions.
16 changes: 2 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,15 @@ exclude: '^thirdparty'
fail_fast: True
repos:
# prepare-clang-tidy and clang-tidy run only in local machine, not on CI
- repo: local
hooks:
- id: prepare-clang-tidy
name: Prepare clang-tidy
entry: bash -c 'scripts/prepare_clang_tidy.sh'
language: system
types: [shell]
always_run: true
stages: [pre-push]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pocc/pre-commit-hooks
rev: master
rev: v1.3.5
hooks:
- id: clang-format
args: [-style=file]
- id: clang-tidy
args: ["--config-file=.clang-tidy", "-p=build/compile_commands.json"]
stages: [pre-push]
2 changes: 1 addition & 1 deletion cmake/libs/libfaiss.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if(__X86_64)
endif()

if(__AARCH64)
set(UTILS_SRC src/simd/hook.cc src/simd/distances_ref.cc)
set(UTILS_SRC src/simd/hook.cc src/simd/distances_ref.cc src/simd/distances_neon.cc)
add_library(knowhere_utils STATIC ${UTILS_SRC})
target_link_libraries(knowhere_utils PUBLIC glog::glog)
endif()
Expand Down
Loading

0 comments on commit 915ba68

Please sign in to comment.