]> git.sesse.net Git - stockfish/commit
Move DotProd code into optimized affine layer
authorMinetaS <skdty87@gmail.com>
Mon, 29 Jul 2024 03:10:34 +0000 (12:10 +0900)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sat, 3 Aug 2024 07:42:03 +0000 (09:42 +0200)
commitb976f0a101f80d8b80aa212e92d1cc04b12c6136
tree2f176fb5342b63d6efb869dcb3a295bacbf6454d
parent8e560c4fd347514a699bde1931912834047cc835
Move DotProd code into optimized affine layer

This patch moves the DotProd code into the propagation function which
has sequential access optimization. To prove the speedup, the comparison
is done without the sparse layer. With the sparse layer the effect is
marginal (GCC 0.3%, LLVM/Clang 0.1%).

For both tests, binary is compiled with GCC 14.1. Each test had 50 runs.

Sparse layer included:
```
speedup        = +0.0030
P(speedup > 0) =  1.0000
```

Sparse layer excluded:
```
speedup        = +0.0561
P(speedup > 0) =  1.0000
```

closes https://github.com/official-stockfish/Stockfish/pull/5520

No functional change
src/nnue/layers/affine_transform.h