Steinar H. Gunderson
7ed6af120a
Fix -Wunused-parameter warning.
...
When compiling the cluster branch but in non-MPI mode, we'd get some
warnings in cluster.h about unused ThreadPool parameters.
No functional change.
2026-01-02 09:29:38 +01:00
Steinar H. Gunderson
d3a46e40b2
Update cluster copyright year.
...
No functional change.
2026-01-02 09:29:33 +01:00
Steinar H. Gunderson
bd3fd8ba79
Extract bestMove and ponderMove after the PV.
...
Extracting ponderMove may have the unintentional effect of extending the
PV by one move (which should not be displayed), so we need to extract it
after we've extracted the PV. We still need to both before the MPI exchange,
though.
Patch by vondele, merely committed by me.
2026-01-02 09:24:56 +01:00
Steinar H. Gunderson
3d577337c2
Merge branch 'master' into cluster
2026-01-01 17:33:27 +01:00
Joost VandeVondele
28844fc697
Update of the year
...
Happy New Year!
closes https://github.com/official-stockfish/Stockfish/pull/6514
No functional change
2026-01-01 16:17:38 +01:00
mstembera and Joost VandeVondele
8815d1ef02
Minor cleanup in full_threats.cpp
...
closes https://github.com/official-stockfish/Stockfish/pull/6509
No functional change
2026-01-01 16:13:44 +01:00
FauziAkram and Joost VandeVondele
5b9259e51f
Replacing nested loops with a single range-based for loop
...
closes https://github.com/official-stockfish/Stockfish/pull/6503
No functional change
2026-01-01 16:12:35 +01:00
anematode and Joost VandeVondele
593eeaf24c
simplify find_nnz a bit
...
This code path is never taken for vector sizes >= 512, so we can simplify it.
closes https://github.com/official-stockfish/Stockfish/pull/6501
No functional change
2026-01-01 16:08:03 +01:00
ppigazzini and Joost VandeVondele
0317c6ccec
build: rename WINE_PATH to RUN_PREFIX for wrapper execution
...
WINE_PATH started as a Wine-specific knob, but it’s now used more generally
as a command prefix to run the built engine under wrappers
like Intel SDE, qemu-user, etc.
- Add RUN_PREFIX as the supported “run wrapper/prefix” variable in Makefile
- Set WINE_PATH as a deprecated alias
- Update CI and scripts to use RUN_PREFIX
closes https://github.com/official-stockfish/Stockfish/pull/6500
No functional change
2026-01-01 16:06:25 +01:00
anematode and Joost VandeVondele
aeb3bf33a9
port get_changed_pieces to ARM NEON
...
passed STC:
LLR: 2.94 (-2.94,2.94) <0.00,2.00>
Total: 71968 W: 18833 L: 18489 D: 34646
Ptnml(0-2): 192, 7310, 20643, 7640, 199
https://tests.stockfishchess.org/tests/view/69509e5c572093c1986d7a0a
closes https://github.com/official-stockfish/Stockfish/pull/6512
No functional change
2026-01-01 16:04:43 +01:00
Michael Chaly and Joost VandeVondele
ced9f69834
Adjust main history with every new root position
...
this patch dampens down main history to 3/4 of it value for all possible moves
at the start of ID loop, making it partially refresh with every new root
position.
Passed STC:
https://tests.stockfishchess.org/tests/view/694e33ff572093c1986d7234
LLR: 2.93 (-2.94,2.94) <0.00,2.00>
Total: 115520 W: 30164 L: 29735 D: 55621
Ptnml(0-2): 395, 13192, 30192, 13551, 430
Passed LTC:
https://tests.stockfishchess.org/tests/view/6950cbe6572093c1986d816c
LLR: 2.95 (-2.94,2.94) <0.50,2.50>
Total: 63672 W: 16480 L: 16114 D: 31078
Ptnml(0-2): 46, 6524, 18329, 6892, 45
closes https://github.com/official-stockfish/Stockfish/pull/6504
bench 2710946
2026-01-01 15:53:04 +01:00
Steinar H. Gunderson and Joost VandeVondele
1453691496
Fix feature check
...
Use _POSIX_C_SOURCE to check for PTHREAD_MUTEX_ROBUST support. The latter is a enum, not a defined variable.
closes https://github.com/official-stockfish/Stockfish/pull/6510
No functional change
2026-01-01 15:52:01 +01:00
Joost VandeVondele
e0fb783c30
Fix incorrect initialization
...
Fixes https://github.com/official-stockfish/Stockfish/issues/6505
Missing initialization seemingly resulting in side effects, as discussed in the issue.
Credit to Sopel for spotting the bug.
PR used as a testcase for CoPilot, doing the right thing https://github.com/official-stockfish/Stockfish/pull/6478#discussion_r2655467218
closes https://github.com/official-stockfish/Stockfish/pull/6511
No functional change
2026-01-01 15:51:09 +01:00
Timothy Herchen and Disservin
44d5467bbe
Remove -Wstack-usage on (apple) clang
...
Clang pretends to be GCC, but is enraged by `-Wstack-usage`:
closes https://github.com/official-stockfish/Stockfish/pull/6499
No functional change
2025-12-28 14:59:26 +01:00
969285fa5d
Shared pawn history
...
[Passed STC SMP](https://tests.stockfishchess.org/tests/view/694e506c572093c1986d7276 ):
```
LLR: 2.97 (-2.94,2.94) <0.00,2.00>
Total: 14992 W: 3924 L: 3653 D: 7415
Ptnml(0-2): 20, 1547, 4090, 1820, 19
```
[Passed LTC SMP](https://tests.stockfishchess.org/tests/live_elo/694ead61572093c1986d7365 ):
```
LLR: 2.94 (-2.94,2.94) <0.50,2.50>
Total: 41146 W: 10654 L: 10342 D: 20150
Ptnml(0-2): 17, 3999, 12225, 4319, 13
```
[Passed a sanity check STC SMP post-refactoring](https://tests.stockfishchess.org/tests/view/69503997572093c1986d763a ):
```
LLR: 2.94 (-2.94,2.94) <0.00,2.00>
Total: 46728 W: 12178 L: 11863 D: 22687
Ptnml(0-2): 82, 5093, 12685, 5436, 68
```
(The large gain of the first STC was probably a fluke, and this result
is more reasonable!)
After shared correction history, Viz suggested we try sharing other
histories, especially `pawnHistory`. As far as we're aware, sharing
history besides correction history (like Caissa does) is novel. The
implementation follows the same pattern as shared correction history –
the size of the history table is scaled with
`next_power_of_two(threadsInNumaNode)` and the entry is prefetched in
`do_move`.
A bit of refactoring was done to accommodate this new history. Note that
we prefetch `&history->pawn_entry(*this)[pc][to]` rather than
`&history->pawn_entry(*this)` because unlike the other entries, each
entry contains multiple cache lines.
closes https://github.com/official-stockfish/Stockfish/pull/6498
Bench: 2503391
Co-authored-by: Michael Chaly <Vizvezdenec@gmail.com >
2025-12-28 14:59:09 +01:00
Stefan Geschwentner and Disservin
1780c1fd6e
For expected ALL nodes scale up reduction with depth dependent factor.
...
Passed STC:
LLR: 2.93 (-2.94,2.94) <0.00,2.00>
Total: 141120 W: 36860 L: 36390 D: 67870
Ptnml(0-2): 470, 16441, 36314, 16819, 516
https://tests.stockfishchess.org/tests/view/694978e93c8768ca45072763
Passed LTC:
LLR: 2.94 (-2.94,2.94) <0.50,2.50>
Total: 66576 W: 17078 L: 16700 D: 32798
Ptnml(0-2): 45, 7093, 18628, 7483, 39
https://tests.stockfishchess.org/tests/view/694bb608572093c1986d6ba6
closes https://github.com/official-stockfish/Stockfish/pull/6496
Bench: 2503391
2025-12-28 14:55:55 +01:00
KazApps and Disservin
b2e60960b3
Fix nonPawnKey
...
Fix incorrect nonPawnKey update
Passed non-reg SMP STC:
```
LLR: 2.93 (-2.94,2.94) <-1.75,0.25>
Total: 139424 W: 35792 L: 35690 D: 67942
Ptnml(0-2): 197, 15783, 37665, 15855, 212
```
https://tests.stockfishchess.org/tests/view/694b7b7e572093c1986d6b0d
Passed non-reg SMP LTC:
```
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 88880 W: 22863 L: 22718 D: 43299
Ptnml(0-2): 16, 8947, 26401, 9028, 48
```
https://tests.stockfishchess.org/tests/view/694d2ceb572093c1986d6fc8
fixes https://github.com/official-stockfish/Stockfish/issues/6492
closes https://github.com/official-stockfish/Stockfish/pull/6494
Bench: 2475788
2025-12-28 14:55:47 +01:00
Daniel Monroe and Disservin
1047f844d1
Simplify doDeeperSearch
...
Passed simplification STC
LLR: 2.93 (-2.94,2.94) <-1.75,0.25>
Total: 92096 W: 23888 L: 23728 D: 44480
Ptnml(0-2): 336, 10796, 23608, 10988, 320
https://tests.stockfishchess.org/tests/view/694b6b9d572093c1986d6ae0
Passed simplification LTC
LLR: 2.96 (-2.94,2.94) <-1.75,0.25>
Total: 50064 W: 12789 L: 12598 D: 24677
Ptnml(0-2): 24, 5350, 14103, 5521, 34
https://tests.stockfishchess.org/tests/view/694d49aa572093c1986d7021
closes https://github.com/official-stockfish/Stockfish/pull/6493
Bench: 2494221
2025-12-28 14:53:12 +01:00
Joost VandeVondele and Disservin
06819ad54c
Update Top CPU Contributors
...
update to current
closes https://github.com/official-stockfish/Stockfish/pull/6491
No functional change
2025-12-28 14:51:56 +01:00
FauziAkram and Disservin
9d69577e19
Removing redundant parentheses
...
closes https://github.com/official-stockfish/Stockfish/pull/6490
No functional change
2025-12-28 14:50:36 +01:00
FauziAkram and Disservin
cd3a837324
Refine reduction logic based on next-ply cutoff count
...
Passed STC:
LLR: 2.95 (-2.94,2.94) <0.00,2.00>
Total: 38208 W: 10076 L: 9754 D: 18378
Ptnml(0-2): 139, 4390, 9742, 4676, 157
https://tests.stockfishchess.org/tests/view/6945bb6446f342e1ec211d93
Passed LTC:
LLR: 2.95 (-2.94,2.94) <0.50,2.50>
Total: 64086 W: 16529 L: 16157 D: 31400
Ptnml(0-2): 34, 6808, 17990, 7174, 37
https://tests.stockfishchess.org/tests/view/69479d303c8768ca45072446
closes https://github.com/official-stockfish/Stockfish/pull/6489
Bench: 2442415
2025-12-28 14:49:19 +01:00
Steinar H. Gunderson
bbdab9889a
Unbreak MPI compilation.
...
3c2c7b01bd deleted the TTCache default constructor, but we need it
when MPI is active. This wasn't discovered during the merging,
and it is hard to put it properly into the commit history due to
rebase/rerere shortcomings. (This means that some of the merge
commits will not compile with MPI on, and this patch needs to be
added on top if bisecting.)
2025-12-26 23:20:44 +01:00
Steinar H. Gunderson
1b3830fad4
Merge commit 'c467fe5ba42545827d769c360aa404767308ac18' into cluster
2025-12-25 20:22:33 +01:00
Steinar H. Gunderson
bf5f8c5543
Merge commit '5297ba0a1a1aa0a15332e0d64ce6b32952342cac' into cluster
2025-12-25 20:22:26 +01:00
Steinar H. Gunderson
0bcfc6c651
Merge commit 'abd835dcbc3a28481224f6253b00b7420d062513' into cluster
...
This is the last commit before there are more conflicts.
2025-12-25 20:19:41 +01:00
Steinar H. Gunderson
a8f8f97eb1
Merge commit '8e5392d79a36aba5b997cf6fb590937e3e624e80' into cluster
2025-12-25 20:19:19 +01:00
Steinar H. Gunderson
8cc99e1314
Merge commit '69a01b88f35db2a5003d42116f573207ca5c275b' into cluster
2025-12-25 20:16:11 +01:00
Steinar H. Gunderson
bfc8c24999
Merge commit 'bc9f08731f10896a306bcc34e30e5606087af79a' into cluster
...
This is the last commit before there are more conflicts.
2025-12-25 20:13:41 +01:00
Steinar H. Gunderson
8b776c3f04
Merge commit '75edbee01e6f8cb53a2555499192ccaddb883577' into cluster
2025-12-25 20:13:34 +01:00
Steinar H. Gunderson
725acd7449
Merge commit '315f8ba4bf7d846b35f984d5e6040c14a512d9b9' into cluster
...
This is the last commit before there are more conflicts.
2025-12-25 20:12:54 +01:00
Steinar H. Gunderson
f5a171d82e
Merge commit 'e2aa1255707628aa1d70f13c88211724e34fa38e' into cluster
2025-12-25 20:12:35 +01:00
Steinar H. Gunderson
b5c4fd2b7a
Merge commit '8c2d21f91a5840a67c36267e5043070ffad06860' into cluster
...
This is the last commit before there are more conflicts.
2025-12-25 20:08:43 +01:00
Steinar H. Gunderson
e1f2a899b7
Merge commit 'd2d046c2a497b2d70debde07ccc414ca633d550b' into cluster
2025-12-25 20:07:02 +01:00
Steinar H. Gunderson
f44f4f356c
Merge commit '44efbaddea909e146c6c41afaf458da8c9e4b4e4' into cluster
...
This is the last commit before there are more conflicts.
2025-12-25 20:03:12 +01:00
Steinar H. Gunderson
20d5986235
Merge commit 'd7c04a942950f1fe3f655bf8b608e8ef21c07628' into cluster
2025-12-25 20:03:00 +01:00
Steinar H. Gunderson
ab03e55a60
Merge commit 'd942e13398aa5de55224c7d81bfad6b0f5b9e488' into cluster
...
This is the last commit before there are more conflicts.
2025-12-25 20:02:14 +01:00
Steinar H. Gunderson
7c50916a9d
Merge commit '291a429cdd54f5298b8dc3d19cd08c3a64de4d10' into cluster
2025-12-25 20:02:02 +01:00
Steinar H. Gunderson
60f5e6c211
Merge commit '43b2d65d7275b11fd47c7225f8a0d19afbab4cd1' into cluster
...
This is the last commit before there are more conflicts.
2025-12-25 20:01:02 +01:00
Steinar H. Gunderson
0eb376ce8d
Merge commit 'f00d91f8ac72de8d201f8b50968bb66b1235dc9a' into cluster
2025-12-25 20:00:51 +01:00
Steinar H. Gunderson
6653af1549
Merge commit '738ac2a10025ca58198e3d2d7f0bc70d83c2cb7f' into cluster
...
This is the last commit before there are more conflicts.
2025-12-25 19:59:45 +01:00
Steinar H. Gunderson
4662a58e1d
Merge commit '28c07fb456855c4e082571ed7dd723a3e71fdcff' into cluster
2025-12-25 19:59:29 +01:00
Steinar H. Gunderson
21d7128260
Merge commit 'ea71a088435d4f1e51433c0a321f2afdff7814b1' into cluster
...
This is the last commit before there are more conflicts.
2025-12-25 19:58:36 +01:00
Steinar H. Gunderson
75dd7d80ba
Merge commit 'f414d490bc0e4013c211a066623f313883f49106' into cluster
2025-12-25 19:53:08 +01:00
Steinar H. Gunderson
8a6a8e8a42
Merge commit 'b822fdf2f2f00758c794cb61a25a044424d2bc0a' into cluster
...
This is the last commit before there are more conflicts.
2025-12-25 19:50:17 +01:00
Steinar H. Gunderson
03732aa685
Merge commit '57e06be71f0177a69843750a9f456462d02f23b9' into cluster
2025-12-25 17:57:11 +01:00
Steinar H. Gunderson
f2643877eb
Merge commit '70bb317afe870c8bc1979ef955f120e4d81f504e' into cluster
...
This is the last commit before there are more conflicts.
2025-12-25 17:33:17 +01:00
Steinar H. Gunderson
a5ea0b2b2b
Merge commit 'c2611efe5c317969b583a5ff81352439f905e722' into cluster
2025-12-25 17:32:39 +01:00
Steinar H. Gunderson
110fdc486a
Merge commit '16fee2a7da25c6d0267930eb9677862cb1f009c7' into cluster
...
This is the last commit before there are more conflicts.
2025-12-25 17:30:06 +01:00
Steinar H. Gunderson
b3580e942d
Merge commit 'c15113554f53890d7944c00a70d0f2d8a78916fb' into cluster
2025-12-25 17:26:35 +01:00
Steinar H. Gunderson
5d3f71f72d
Merge commit '2ce47573b4d3664dca4cbc4354c8c600540d16ad' into cluster
...
This is the last commit before there are more conflicts.
2025-12-25 17:22:27 +01:00