Commit 0cbc2a8
Use _mm512_popcnt_epi64 to speedup hamming distance evaluation. (facebookresearch#4020)
Summary:
The `_mm512_popcnt_epi64` intrinsic is used to accelerate Hamming distance calculations in `HammingComputerDefault` and `HammingComputer64`.
Benchmarking with [bench_hamming_computer](https://github.com/facebookresearch/faiss/blob/main/benchs/bench_hamming_computer.cpp) on AWS [r7i](https://aws.amazon.com/ec2/instance-types/r7i/) instance shows a performance improvement of up to 30% compared to AVX-2.
This PR depends on [PR#4025](facebookresearch#4025)
Pull Request resolved: facebookresearch#4020
Reviewed By: junjieqi
Differential Revision: D67650183
Pulled By: mengdilin
fbshipit-source-id: 17e5b68570dced1fea0b885dd4e67c17dfc7bece1 parent ab479a1 commit 0cbc2a8
3 files changed
Lines changed: 494 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
| |||
0 commit comments