-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move some code into threads #2720
Conversation
I'm wondering about this |
Should we do a threaded non-regression test? I don't expect it to be a problem, but it would be embarrassing if a threading code tidy up caused a regression. |
@xoto10 the test was threaded, it is not clear from the commit message. |
@protonspring can you have a look at the bestMoveChanges I made before. Now that the code is refactored, it is a good moment to fix it. |
I haven't looked much here, but on first glance, I would set bestMoveChanges to 0 on search(EDIT or start_thinking as suggested above), and add another method for ThreadPool::get_bestMoveChanges which gets the total for all threads in the pool. This would further simplify search. |
Thanks! |
This is a code style change that moves some pure thread code into the threads class. It is a bit more code, but it makes search.cpp cleaner and easier to read by hiding some thread specific functionality. STC (SMP) LLR: 2.93 (-2.94,2.94) {-1.50,0.50} Total: 75896 W: 12073 L: 12026 D: 51797 Ptnml(0-2): 828, 8224, 19872, 8121, 903 https://tests.stockfishchess.org/tests/view/5ed492e8f29b40b0fc95a74c closes official-stockfish#2720 No functional change.
This is a non-functional code style change that moves some pure thread code into the threads class.
It is a bit more code, but it makes search.cpp cleaner and easier to read by hiding some thread specific functionality.
STC (SMP)
LLR: 2.93 (-2.94,2.94) {-1.50,0.50}
Total: 75896 W: 12073 L: 12026 D: 51797
Ptnml(0-2): 828, 8224, 19872, 8121, 903
https://tests.stockfishchess.org/tests/view/5ed492e8f29b40b0fc95a74c