Commit c7f7089
[0.8] [MOD - 6778] AVX512_FP16 distance functions (#489)
[MOD - 6778] AVX512_FP16 distance functions (#477)
* change avx512 to avx512f to set the ground for avx512_fp16 (which is already used for avx512f for fp16)
* format
* more fixes
* add OPT_AVX512_FP16 macro if supported
IP & L2 : choose OPT_AVX512_FP16 if supported
add unit tests for fp16 with advanced flag (seperate test as the baseline calculation is different)
fp16 Benchmark:
all of these changes will be moved to a new PR
Duplicated bm class and made it templated only for fp16 so we can control the conversion function in SetUp
also added high dimension bm to fp16
* format
* install gcc12 ubuntu22
* set gcc12 as default
* merge with the bm spaces small refactor
* choose OPT_AVX512_FP16 depending on the dim
IP: 500
L2: 440
* Upgrade gcc in rocky 8 (12) + 9 (13)
* enable flow temp
* rocky8 and ubuntu22: install gcc 13
* fix temp flow
* jammy: revedrt to gcc12
* align gcov version with gcc version
temp flow runcodcov on focal (before updating gcov version)
* ubuntu20 align gcov version with gcc version
* fix cast to avoid warning
* add test for fp16 native type comparing to vecsim
allow 1% error in fp16 advanced tests
add explicit to float16 constructor to protected from implicit casts.
* fix comment
disable flow temp
* use explicit ctor for bfloat to avoid implicit casts
* Apply suggestions from code review
Co-authored-by: GuyAv46 <47632673+GuyAv46@users.noreply.github.com>
Co-authored-by: DvirDukhan <dvir@redis.com>
* use explicit ctor for bfloat to avoid implicit casts
* IP: mask mul instead of mask load as it is faster
---------
Co-authored-by: GuyAv46 <47632673+GuyAv46@users.noreply.github.com>
Co-authored-by: DvirDukhan <dvir@redis.com>
(cherry picked from commit 9c9b7ac)
Co-authored-by: meiravgri <109056284+meiravgri@users.noreply.github.com>1 parent 45eb411 commit c7f7089
File tree
36 files changed
+441
-91
lines changed- .github/workflows
- .install
- cmake
- src/VecSim
- spaces
- IP
- L2
- functions
- types
- tests
- benchmark/spaces_benchmarks
- unit
36 files changed
+441
-91
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
File renamed without changes.
File renamed without changes.
0 commit comments