Bug 428412 - Let Knights use as many cores as it can
Summary: Let Knights use as many cores as it can
Status: REOPENED
Alias: None
Product: knights
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-29 03:53 UTC by twinshadows404
Modified: 2020-11-01 18:04 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description twinshadows404 2020-10-29 03:53:45 UTC
It's using just 1 core in 2020.
Comment 1 Nate Graham 2020-10-29 19:08:05 UTC
It's a chess game. Why would it ever need to use more than one core?
Comment 2 Albert Astals Cid 2020-10-29 19:23:41 UTC
Because chess is a very computationally intensive game, you remember Deep Blue?
Comment 3 Nate Graham 2020-10-29 19:50:12 UTC
Fair enough!
Comment 4 Alexander Semke 2020-10-29 20:28:00 UTC
knights is using 1 core for the UI part and for the communication with the chess engines - this is fast enough. The actual computation of the board and of the moves is happening in the engines - this is where the parameters like the number of cores, the computation depth, etc. are relevant.

At the moment knights can only control the depth and the memory of the hash tables for the XBoard protocol and the memory for the hash tables for the UCI protocol - this can be influenced by the user by selecting a different "difficulty". I don't see in the protocol specs how to influence the degree of parallelization from the client side, though. Knight would need to learn the different setting for the different chess engines like the smpmt-parameter for crafty (https://craftychess.com/documentation/craftydoc.html) and so on. But at the moment it's not planned to add this functionality to knights. 

So, if you want to let your favorite engine use multiple cores now you'll need to check and to modify its settings.
Comment 5 twinshadows404 2020-11-01 18:04:53 UTC
I know it's not a bug, that's why it's marked as wishlist