Repository navigation
Commit 0549cb0
kernels: import go-simd/floats for sum, elementwise, extrema, clip, exp, log (K1) (#97)
* kernels: import go-simd/floats for sum, elementwise, extrema, clip, exp, log (K1)
K1 of the go-scikit performance campaign (go-scikit/roadmap#27): ndarray now
imports go-simd/floats v0.9.0 and deletes its copies.
- exp, log, and the correctly rounded float32 exp/log (with the AVX2 kernels of
#94/#96 and the NEON kernel of #95, now go-simd/floats#29): deleted here
(Go sources, tests, generator kernels, assembly); Exp, Log, Exp32, Log32 and
their P forms call floats.
- amd64 and arm64: the sum/sqrt/max/min/add/sub/mul/div kernels are floats';
Clip is floats.ClampScalar. Max/Min resolve a zero result with the serial
oracle (floats leaves the sign of zero unspecified).
- Sum is floats.SumPairwise on every architecture: NumPy's order, bit-identical
to np.sum; serial at every size. A changed last bit is the fix; the golden
values of TestSumMatchesNumPy are NumPy 2.5.4's.
- Not moved: the float32 elementwise/sqrt/extremum/AddBlocks8F32 kernels, the
dot inside GEMM/Dot1D, and the ppc64le, loong64, riscv64 and s390x kernels
(floats has none for them yet).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* kernels: test the parallel exp/log forms and Log10 (100% coverage gate)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>1 parent 14d590b commit 0549cb0
45 files changed
Lines changed: 300 additions & 3499 deletions
File tree
- internal/kernels
- asmgen
- amd64
- arm64
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
178 | 191 | | |
179 | 192 | | |
180 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
| |||
54 | 51 | | |
55 | 52 | | |
56 | 53 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 54 | | |
62 | 55 | | |
63 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
56 | | - | |
57 | | - | |
58 | 53 | | |
59 | 54 | | |
60 | 55 | | |
| |||
This file was deleted.
0 commit comments