Commit ebaa34a
speedup all binary functions on avx256, speedup binary square on avx512 (#12681)
- Move testing properties to provider class (no classloading deadlock possible) and fallback to default provider in non-test mode
- fix html
- tidy
- fix Panama provider to only have static final constants, but allow sysprops for testing.
- Set those sysprops by the build when running tests: force integer vectors on always, and randomize vector size
- stop using SPECIES_PREFERRED except at the top of this file
- speedup all binary functions on avx256, speedup binary square on avx512
- cleanup cosine too, no perf impact
- simple cleanups to vector code1 parent 2615c03 commit ebaa34a
File tree
4 files changed
+505
-326
lines changed- gradle/testing
- lucene/core/src
- java20/org/apache/lucene/internal/vectorization
- java/org/apache/lucene/internal/vectorization
4 files changed
+505
-326
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
108 | 115 | | |
109 | 116 | | |
110 | 117 | | |
| |||
Lines changed: 45 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
43 | 75 | | |
44 | 76 | | |
45 | 77 | | |
| |||
90 | 122 | | |
91 | 123 | | |
92 | 124 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
97 | 136 | | |
98 | 137 | | |
99 | 138 | | |
| |||
102 | 141 | | |
103 | 142 | | |
104 | 143 | | |
105 | | - | |
106 | | - | |
| 144 | + | |
107 | 145 | | |
108 | | - | |
| 146 | + | |
109 | 147 | | |
110 | 148 | | |
111 | 149 | | |
| |||
0 commit comments