SMP SF Formula

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Werewolf
Posts: 2061
Joined: Thu Sep 18, 2008 10:24 pm

Re: SMP SF Formula

Post by Werewolf »

My point is this:

Is the issue that multi-threading somehow doesn't work well with NNUE, or is it that you get exactly the same phenomena when time is greatly increased as well?

I'm wondering if NNUE gave such a large gain that increasing time per move (or processing speed) yields less gain than it used to.
smatovic
Posts: 3487
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: SMP SF Formula

Post by smatovic »

SF uses an own implementation of LazySMP parallel search, it is not comparable to things you can figure out on paper like DTS, YBWC or ABDADA, therefore they measure Elo gain and not time to depth speedups, I guess SF SMP is intertwined heavily with their selective search heuristics, some say they just widen the search with their approach, but IMO it is not that simple.

--
Srdja
Jouni
Posts: 3779
Joined: Wed Mar 08, 2006 8:15 pm
Full name: Jouni Uski

Re: SMP SF Formula

Post by Jouni »

I have no reason to doubt Young results. But he uses Perfect Book 2021, which have obviously very drawish lines.
Jouni
Werewolf
Posts: 2061
Joined: Thu Sep 18, 2008 10:24 pm

Re: SMP SF Formula

Post by Werewolf »

smatovic wrote: Tue Nov 02, 2021 8:33 am SF uses an own implementation of LazySMP parallel search, it is not comparable to things you can figure out on paper like DTS, YBWC or ABDADA, therefore they measure Elo gain and not time to depth speedups, I guess SF SMP is intertwined heavily with their selective search heuristics, some say they just widen the search with their approach, but IMO it is not that simple.

--
Srdja
Understood.
But if the SMP search has much lower gains than before as the thread count increases, it does suggest something is wrong.
lkaufman
Posts: 6279
Joined: Sun Jan 10, 2010 6:15 am
Location: Maryland USA
Full name: Larry Kaufman

Re: SMP SF Formula

Post by lkaufman »

Werewolf wrote: Tue Nov 02, 2021 10:22 am
smatovic wrote: Tue Nov 02, 2021 8:33 am SF uses an own implementation of LazySMP parallel search, it is not comparable to things you can figure out on paper like DTS, YBWC or ABDADA, therefore they measure Elo gain and not time to depth speedups, I guess SF SMP is intertwined heavily with their selective search heuristics, some say they just widen the search with their approach, but IMO it is not that simple.

--
Srdja
Understood.
But if the SMP search has much lower gains than before as the thread count increases, it does suggest something is wrong.
Elo gains will be lower due to higher strength. The proper test here would be to have the NNUE version on eight threads play against the same version on one thread with 5x as much time, then repeat with NNUE turned off on both. Both results should be close to 50%, if one does much better than the other it indicates it is more MP friendly.
Komodo rules!
Werewolf
Posts: 2061
Joined: Thu Sep 18, 2008 10:24 pm

Re: SMP SF Formula

Post by Werewolf »

lkaufman wrote: Tue Nov 02, 2021 9:03 pm
Werewolf wrote: Tue Nov 02, 2021 10:22 am
smatovic wrote: Tue Nov 02, 2021 8:33 am SF uses an own implementation of LazySMP parallel search, it is not comparable to things you can figure out on paper like DTS, YBWC or ABDADA, therefore they measure Elo gain and not time to depth speedups, I guess SF SMP is intertwined heavily with their selective search heuristics, some say they just widen the search with their approach, but IMO it is not that simple.

--
Srdja
Understood.
But if the SMP search has much lower gains than before as the thread count increases, it does suggest something is wrong.
Elo gains will be lower due to higher strength. The proper test here would be to have the NNUE version on eight threads play against the same version on one thread with 5x as much time, then repeat with NNUE turned off on both. Both results should be close to 50%, if one does much better than the other it indicates it is more MP friendly.
Yes but if that's true you'd get exactly the same phenomena observed from large increases in time as well. If going from 1 thread to 16 only yields a small gain now, then a large time increase (say 10x) would be similar.

It's not an SMP issue actually if your point stands.
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: SMP SF Formula

Post by MikeB »

Image
Werewolf
Posts: 2061
Joined: Thu Sep 18, 2008 10:24 pm

Re: SMP SF Formula

Post by Werewolf »

Very informative post.

It's still not clear in my mind whether the lack of elo gain going from 1 thread to many is caused by:

a) Engines just getting stronger, so the draw ratio increases.
b) An issue with SMP with NNUE and point a) as well.

If it's a) you should see the same phenomenon when two identical engines with equal threads have a massive time discrepancy. If it's b) you'll only see this phenomenon mildly with such conditions.
Raphexon
Posts: 476
Joined: Sun Mar 17, 2019 12:00 pm
Full name: Henk Drost

Re: SMP SF Formula

Post by Raphexon »

Werewolf wrote: Thu Nov 04, 2021 1:37 pm Very informative post.

It's still not clear in my mind whether the lack of elo gain going from 1 thread to many is caused by:

a) Engines just getting stronger, so the draw ratio increases.
b) An issue with SMP with NNUE and point a) as well.

If it's a) you should see the same phenomenon when two identical engines with equal threads have a massive time discrepancy. If it's b) you'll only see this phenomenon mildly with such conditions.
What issue with SMP?
Werewolf
Posts: 2061
Joined: Thu Sep 18, 2008 10:24 pm

Re: SMP SF Formula

Post by Werewolf »

A short match, but something nevertheless:

Engine: Stockfish 14.1
Book: Nooman short
TC: G10 + 10
Threadripper 3990X
60 threads vs 1 thread
Ponder = on (keeps clockspeed fair)

60 draws
6 wins for the 60 thread version
0 Losses

54% or +30 elo for 60 threads vs 1 thread.