mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 09:39:36 +00:00
![]() In their infinite wisdom, Intel axed AVX512 from Alder Lake chips (well, not entirely, but we kind of want to use the Gracemont cores for chess!) but still added VNNI support. Confusingly enough, this is not the same as VNNI256 support. This adds a specific AVX-VNNI target that will use this AVX-VNNI mode, by prefixing the VNNI instructions with the appropriate VEX prefix, and avoiding AVX512 usage. This is about 1% faster on P cores: Result of 20 runs ================== base (./clang-bmi2 ) = 3306337 +/- 7519 test (./clang-vnni ) = 3344226 +/- 7388 diff = +37889 +/- 4153 speedup = +0.0115 P(speedup > 0) = 1.0000 But a nice 3% faster on E cores: Result of 20 runs ================== base (./clang-bmi2 ) = 1938054 +/- 28257 test (./clang-vnni ) = 1994606 +/- 31756 diff = +56552 +/- 3735 speedup = +0.0292 P(speedup > 0) = 1.0000 This was measured on Clang 13. GCC 11.2 appears to generate worse code for Alder Lake, though the speedup on the E cores is similar. It is possible to run the engine specifically on the P or E using binding, for example in linux it is possible to use (for an 8 P + 8 E setup like i9-12900K): taskset -c 0-15 ./stockfish taskset -c 16-23 ./stockfish where the first call binds to the P-cores and the second to the E-cores. closes https://github.com/official-stockfish/Stockfish/pull/3824 No functional change |
||
---|---|---|
.. | ||
incbin | ||
nnue | ||
syzygy | ||
benchmark.cpp | ||
bitbase.cpp | ||
bitboard.cpp | ||
bitboard.h | ||
endgame.cpp | ||
endgame.h | ||
evaluate.cpp | ||
evaluate.h | ||
main.cpp | ||
Makefile | ||
material.cpp | ||
material.h | ||
misc.cpp | ||
misc.h | ||
movegen.cpp | ||
movegen.h | ||
movepick.cpp | ||
movepick.h | ||
pawns.cpp | ||
pawns.h | ||
position.cpp | ||
position.h | ||
psqt.cpp | ||
psqt.h | ||
search.cpp | ||
search.h | ||
simd.h | ||
thread.cpp | ||
thread.h | ||
thread_win32_osx.h | ||
timeman.cpp | ||
timeman.h | ||
tt.cpp | ||
tt.h | ||
tune.cpp | ||
tune.h | ||
types.h | ||
uci.cpp | ||
uci.h | ||
ucioption.cpp |