Re: Approximate ABDADA
Posted: Thu Aug 24, 2017 3:37 am
Hello Dan,Dann Corbit wrote:My guess:D Sceviour wrote:Assuming both threads are allowed to finish, what do you do if one thread returns a different value than the other thread?petero2 wrote:If a helper thread finishes its search before the master thread, the result from the helper thread is used instead of waiting for the master to finish its search.
A. If one is deeper, use the deepest one.
B. If depth is the same, use the one with the most nodes.
A. Makes sense.
B. Not necessarily. Since both threads are sharing the same hash table, perhaps the one with the fewest nodes has the best hash values available - meaning it has the most recent up-to-date hash entries and cutoffs available. Peters intention might be the thread that returns first is the thread that governs the score and PV, regardless of any subsequent thread value. However, it would be nice to have a good list of the possible errors at the return point.