Skip to content

Using AVX-512 VNNI instructions to optimize the DistanceComputerByte::compute_code_distance#5067

Open
baohongmin wants to merge 3 commits intofacebookresearch:mainfrom
baohongmin:avx512_vnni_opt
Open

Using AVX-512 VNNI instructions to optimize the DistanceComputerByte::compute_code_distance#5067
baohongmin wants to merge 3 commits intofacebookresearch:mainfrom
baohongmin:avx512_vnni_opt

Conversation

@baohongmin
Copy link
Copy Markdown

Using AVX-512 VNNI instructions to optimize the DistanceComputerByte::compute_code_distance.
Test with one million 128 dimensional vectors: L2 and Inner Product calculation: >1.3X performance improvement.
Significant performance gains are achieved when dimensionality exceeds 16.

Using AVX-512 VNNI instructions to optimize the DistanceComputerByte::compute_code_distance.
L2 distance calculation: >1.5X performance improvement
Inner Product (IP) calculation: >1.3X performance improvement
@meta-cla meta-cla bot added the CLA Signed label Apr 9, 2026
@baohongmin baohongmin marked this pull request as draft April 9, 2026 04:50
@baohongmin baohongmin marked this pull request as ready for review April 9, 2026 04:50
@alibeklfc
Copy link
Copy Markdown
Contributor

Hi! Thank you for your contribution!
We are now almost done refactoring SIMD code in FAISS. Once we finish, we will review this diff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants