mwyoung
Posts : 880 Join date : 2020-11-25 Location : USA
| Subject: Stockfish is Broken in Windows 11 on some CPU's Sun Nov 21, 2021 11:00 pm | |
| "This change is required to spread threads on all cores on Windows 11 with a 3990X CPU. It has only 1 NUMA node with 2 groups of 64 threads each." Stockfish is now broken in Window 11 on some of my testing computers due to the above patch. The computers with more then 16 threads to be exact. I also tested this as shown above on my 8 Core 16 thread computer. And the NPS and Depth were all within 1% of each other. So due to this patch Stockfish went from 22,009,133 nps to 13,075,761 nps and a depth of 42.4 plies to 39.6 plies at a 1m+1s time control. - Code:
-
Result: -------------------------------------------------------------------------------- # name games wins draws losses score elo + - 1. Stockfish 11/11/21 21 0 21 0 10.5 1 49 49 2. Stockfish 15/11/21 21 0 21 0 10.5 -1 49 49
Cross table: -------------------------------------------------------------------------------- # name score games 1 2 1. Stockfish 11/11/21 10.5 21 x =====================------------------------------------------------------------------------------- 2. Stockfish 15/11/21 10.5 21 =====================------------------------------------------------------------------------------- x
Tech: --------------------------------------------------------------------------------
Tech (average nodes, depths, time/m per move, others per game), counted for computing moves only, ignored moves with zero nodes: # name nodes/m NPS depth/m time/m moves time 1. Stockfish 11/11/21 41432K 22009133 42.4 1.9 58.1 109.4 2. Stockfish 15/11/21 24838K 13075761 39.6 1.9 58.1 110.4 all --- 32355K 17520516 41.0 1.9 58.1 109.9
- Code:
-
Author: noobpwnftw Date: Mon Nov 15 18:19:53 2021 +0100 Timestamp: 1636996793
Fix processor group binding under Windows.
Starting with Windows Build 20348 the behavior of the numa API has been changed: https://docs.microsoft.com/en-us/windows/win32/procthread/numa-support
Old code only worked because there was probably a limit on how many cores/threads can reside within one NUMA node, and the OS creates extra NUMA nodes when necessary, however the actual mechanism of core binding is done by "Processor Groups"(https://docs.microsoft.com/en-us/windows/win32/procthread/processor-groups). With a newer OS, one NUMA node can have many such "Processor Groups" and we should just consistently use the number of groups to bind the threads instead of deriving the topology from the number of NUMA nodes.
This change is required to spread threads on all cores on Windows 11 with a 3990X CPU. It has only 1 NUMA node with 2 groups of 64 threads each.
closes https://github.com/official-stockfish/Stockfish/pull/3787
No functional change. | |
|
Mclane
Posts : 3022 Join date : 2020-11-17 Age : 57 Location : United States of Europe, Germany, Ruhr area
| Subject: Re: Stockfish is Broken in Windows 11 on some CPU's Sun Nov 21, 2021 11:26 pm | |
| | |
|
mwyoung
Posts : 880 Join date : 2020-11-25 Location : USA
| Subject: Re: Stockfish is Broken in Windows 11 on some CPU's Sun Nov 21, 2021 11:33 pm | |
| - Mclane wrote:
- Use windows 10
You can not go backwards. All my systems are Windows 11. SF will just be tested at 16 threads until the issue is fixed. | |
|
Mclane
Posts : 3022 Join date : 2020-11-17 Age : 57 Location : United States of Europe, Germany, Ruhr area
| Subject: Re: Stockfish is Broken in Windows 11 on some CPU's Sun Nov 21, 2021 11:35 pm | |
| Thats why i never change a running system and do not update the OS | |
|
mwyoung
Posts : 880 Join date : 2020-11-25 Location : USA
| Subject: Re: Stockfish is Broken in Windows 11 on some CPU's Sun Nov 21, 2021 11:37 pm | |
| - Mclane wrote:
- Thats why i never change a running system and do not update the OS
This has nothing to due with the OS. This is a Stockfish issue. As all other Stockfish before the patch work just fine. Along with all the other chess engines. | |
|
TheSelfImprover
Posts : 3112 Join date : 2020-11-18
| Subject: Re: Stockfish is Broken in Windows 11 on some CPU's Sun Nov 21, 2021 11:46 pm | |
| - mwyoung wrote:
- "This change is required to spread threads on all cores on Windows 11 with
a 3990X CPU. It has only 1 NUMA node with 2 groups of 64 threads each."
Stockfish is now broken in Window 11 on some of my testing computers due to the above patch. The computers with more then 16 threads to be exact.
Here's the actual change (brownish red code deleted, green code added in its place) - link. If you have a Github account, you can sign in and comment on the change. You can also comment on the pull request - link. That pull request also has a test tab: you can put a failed test on that page. | |
|
mwyoung
Posts : 880 Join date : 2020-11-25 Location : USA
| Subject: Re: Stockfish is Broken in Windows 11 on some CPU's Mon Nov 22, 2021 9:26 pm | |
| | |
|
TheSelfImprover
Posts : 3112 Join date : 2020-11-18
| Subject: Re: Stockfish is Broken in Windows 11 on some CPU's Mon Nov 22, 2021 9:51 pm | |
| That's good news!
It also demonstrates a benefit of having a widely used piece of software with a good community updating it. | |
|
Sponsored content
| Subject: Re: Stockfish is Broken in Windows 11 on some CPU's | |
| |
|