-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Helper thread depth #499
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
Helper thread depth #499
Conversation
Reduce additional depth when running out of time. As it is less likely to successfully complete the search at higher depths.
Increase additional depth when time is available
|
@approvers, what is gating this patch? I don't see any comments after the pull request was raised... |
|
I noticed it can't be merged directly into master, but that shouldn't be a problem. |
|
Please resolve merge conflicts and indentation issues (use spaces instead of tabs). Other than it looks fine form me. |
|
Apologise for the indentation issues. Have updated my Notepad++ preferences to use spaces instead of Tabs. |
|
@rohanryan: Please fix the pull request. |
Fix Indentation. No functional changes.
|
Fixed indentation issues. Have I handled the merge conflict correctly? |
…-thread-depth Merged the conflict. Added std::min to helper thread calculation.
|
I hope you did. I managed to merge into my repository. And I hope this will be merged into master soon because people are testing changes in lazy log formula against a master which has no sense at this point. I checked on my computer that lower depths are very important when we are low on time. |
|
This change is a bit controversial, so we need to wait for approval from @glinscott before committing. |
|
@zamar @glinscott : I agree this patch is somewhat TC dependent, and so a bit controversial in that sense. However, I think it can't be harmful. If you are unsure, maybe to run another test with lower increment. |
|
Although I was a fan of this patch, I now kindly ask that we postpone an acceptance of this patch because I now see what we're doing: we are testing very complicated ideas and we didn't try some simple ones. For example, if additional depths (0,1,2) were good on 3 threads, maybe additional depths (0,1,1,2,2,2,2) are going to be good on 7 threads. In this particular patch we are not sure whether an elo gain comes from TM tweak or from factor 1.1 in front of log. |
|
What is the controversial bit? Should I submit for re-testing? or test at Another option would be to test at even larger thread counts. If the On Thu, Nov 19, 2015 at 3:09 AM, IIvec notifications@github.com wrote:
|
|
@rohanryan : I tested your patch and some other variants on my computer. Your patch works pretty well, but it seems that the whole idea is somewhat dependent on the ratio time/increment. I thought it would be best first to optimize performance with simple formula (constant factors) and than to go with deeper idea. Here is one such formula Anyway, I'll lower priority of my test, and let maintainers to decide about this. |
|
I think that any patch that includes depth or time is more or less dependent on time controls and that the only question is: Do we need more tests? |
|
@glinscott: We need your input on this one. What do you think? It's a small ELO gain, but introduces time control dependency in SMP depth formula. |
|
I wonder if we could scale this instead of having it be a hard switchover. The hard switchover condition is going to be hard to tune in the future. |
|
Gary, I agree a function that scales is a much better eventual solution than a Not sure if the ck values etc chosen for the tuning session were The scaling is best linked to branching factor and I've seen work from On Mon, Nov 23, 2015 at 3:01 AM, Gary Linscott notifications@github.com
|
|
Here is a training run for the hard switchover Seems to indicate that 5.4 is better than 5. Not sure if even more tuning On Mon, Nov 23, 2015 at 8:33 AM, Rohan Ryan rohanryan@gmail.com wrote:
|
|
@lucasart Is currently working on "equal thread model". Let's see what comes out of it before merging this. |
|
@zamar: the two are orthogonal, so it won't bother me if you merge this. |
|
@zamar: can single formulas (without time dependence) be tested as simplification against this patch? |
|
If we waited so much with this patch, I think we can wait a little bit more,
|
|
This patch has been obsoleted by #525. Closing. |
Skip futility pruning in qsearch for extinction chess
As engine runs out of available move time, less likely that higher helper thread depths will get to complete. Therefore reduce helper thread depth when running out of available time.
LTC Test
http://tests.stockfishchess.org/tests/view/564058c30ebc59227df17174
p.s. First ever Pull Request. Here goes.