Skip to content

Commit

Permalink
Add optimized distance functions for PowerPC (#894)
Browse files Browse the repository at this point in the history
Added the PowerPC vector functions in src/simd/distances_powerpc.cc,
src/simd/distances_powerpc.h.  The hooks to the PowerPC functions are
added in src/simd/hook.cc.

Signed-off-by: Carl Love <[email protected]>
Co-authored-by: Carl Love <[email protected]>
  • Loading branch information
carll99 and carlelove authored Nov 14, 2024
1 parent 0bb86e3 commit d3605fb
Show file tree
Hide file tree
Showing 4 changed files with 639 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cmake/libs/libfaiss.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ endif()

# ToDo: Add distances_vsx.cc for powerpc64 SIMD acceleration
if(__PPC64)
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_powerpc.cc)
add_library(knowhere_utils STATIC ${UTILS_SRC})
target_link_libraries(knowhere_utils PUBLIC glog::glog)
endif()
Expand Down
Loading

0 comments on commit d3605fb

Please sign in to comment.