dje-dev / Ceres

Ceres - an MCTS chess engine for research and recreation
GNU General Public License v3.0
153 stars 23 forks source link

crashing on startup with AMD 2990 WX + 2080ti #12

Closed masterkni6 closed 3 years ago

masterkni6 commented 3 years ago

right after loading the ceres.json it crashes with this message

96.625<--1:Ceres user settings loaded from file Ceres.json 96.641<--1:Unhandled exception. System.ComponentModel.Win32Exception (87): The parameter is incorrect. 96.641<--1: at System.Diagnostics.Process.set_ProcessorAffinityCore(IntPtr value) 96.641<--1: at System.Diagnostics.Process.set_ProcessorAffinity(IntPtr value) 96.641<--1: at Ceres.Base.OperatingSystem.HardwareManager.AffinitizeSingleProcessor() in C:\Ceres-main\src\Ceres.Base\OperatingSystem\HardwareManager.cs:line 91 96.641<--1: at Ceres.Base.OperatingSystem.HardwareManager.Initialize(Boolean affinitizeSingleProcessor) in C:\Ceres-main\src\Ceres.Base\OperatingSystem\HardwareManager.cs:line 37 96.641<--1: at Ceres.MCTS.Environment.MCTSEngineInitialization.BaseInitialize() in C:\Ceres-main\src\Ceres.MCTS\Environment\MCTSEngineInitialization.cs:line 40 96.641<--1: at Ceres.Program.Main(String[] args) in C:\Ceres-main\src\Ceres\Program.cs:line 68

masterkni6 commented 3 years ago

someone suggested this may have to do with numa cores on the threadripper?

edit: was solved by disabling numa cores

dje-dev commented 3 years ago

Worked around with commit 2f09a831099944951f0cfed1d4679a7ff1970c0e. Possibly affinitization will fail on some AMD processors, but will not crash.