You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8388dc6
Browse filesBrowse the repository at this point in the historyBrowse files
perf: float32 Sqrt kernels on six targets; float32 survey against NumPy (#61)
Against NumPy 2.5.3 on one POWER9 core, float32 Sqrt was 6.8-7.5x
slower: it called math.Sqrt through a function value per element.
kernels.Sqrt32 runs SQRTPS (amd64), NEON .S4 (arm64), xvsqrtsp
(ppc64le), vfsqsb (s390x, z14+), LSX vfsqrt.s (loong64) and RVV E32
(riscv64), 16 floats per iteration. Each is the correctly rounded
float32 square root, so float32(math.Sqrt(float64(x))) bit for bit.
POWER9, abbench (alternated, 8 rounds, pinned core): float32 Sqrt -77%
(2^14) / -83% (2^20); float64 Sqrt, Add and AddInto flat.
benchmarks: DTypeSqrt, DTypeMax, DTypeMatMul. docs/perf.md records the
survey: float32 Max is 11.9-15x slower than NumPy (no kernel; on
ppc64le float64 Max has none either), and float32 MatMul is 9x slower
than our float64 GEMM.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments