Stockfish up to 8 times faster on Apple M1

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

Moderator: Ras

syzygy
Posts: 5774
Joined: Tue Feb 28, 2012 11:56 pm

Re: Stockfish up to 8 times faster on Apple M1

Post by syzygy »

wickedpotus wrote: Mon Nov 22, 2021 6:12 pmBut the sad truth is that Apples CPU dont even support hyper-threading so it is more designed for simple one-thread tasks and not for high-perfroamnce computin like chess-apps etc.
This sentence strongly suggests that you don't really know what you're talking about and are just driven by silly Apple hatred.

The M1 is a very interesting cpu because it shows that the ARM architecture may turn out to be superior to the x86 architecture also for high-performance computing. There is a serious possibility that x86 will have disappeared by the end of the decade.
Milos
Posts: 4190
Joined: Wed Nov 25, 2009 1:47 am

Re: Stockfish up to 8 times faster on Apple M1

Post by Milos »

syzygy wrote: Tue Dec 28, 2021 1:39 am
wickedpotus wrote: Mon Nov 22, 2021 6:12 pmBut the sad truth is that Apples CPU dont even support hyper-threading so it is more designed for simple one-thread tasks and not for high-perfroamnce computin like chess-apps etc.
This sentence strongly suggests that you don't really know what you're talking about and are just driven by silly Apple hatred.

The M1 is a very interesting cpu because it shows that the ARM architecture may turn out to be superior to the x86 architecture also for high-performance computing. There is a serious possibility that x86 will have disappeared by the end of the decade.
This sentence strongly suggests you don't really know much about CPU architecture and high performance CPU design beside what you read on Wikipedia and are just driven by silly Apply fanboyism.
The irony is that you think you really understand it just because you went "back and forth" through Intel Architecture Software Developer's Manual.
Werewolf
Posts: 2042
Joined: Thu Sep 18, 2008 10:24 pm

Re: Stockfish up to 8 times faster on Apple M1

Post by Werewolf »

M1 in all its variants is definitely a bit over-hyped - I got cinebench benchmarks to compare, haven't yet been able to test for chess as I don't own an M1 Mac (the "M" in M1 stands for magical btw... :lol: )

However, HT in chess doesn't seem to yield much elo anymore at decent thread counts.
wickedpotus
Posts: 153
Joined: Sun May 16, 2021 5:33 pm
Full name: Aron Rodgriges

Re: Stockfish up to 8 times faster on Apple M1

Post by wickedpotus »

Werewolf wrote: Tue Dec 28, 2021 2:21 pm M1 in all its variants is definitely a bit over-hyped - I got cinebench benchmarks to compare, haven't yet been able to test for chess as I don't own an M1 Mac (the "M" in M1 stands for magical btw... :lol: )

However, HT in chess doesn't seem to yield much elo anymore at decent thread counts.
HT increase the number of independent instructions in the pipeline, when you increase the number of threads.
Werewolf
Posts: 2042
Joined: Thu Sep 18, 2008 10:24 pm

Re: Stockfish up to 8 times faster on Apple M1

Post by Werewolf »

wickedpotus wrote: Tue Dec 28, 2021 5:21 pm
Werewolf wrote: Tue Dec 28, 2021 2:21 pm M1 in all its variants is definitely a bit over-hyped - I got cinebench benchmarks to compare, haven't yet been able to test for chess as I don't own an M1 Mac (the "M" in M1 stands for magical btw... :lol: )

However, HT in chess doesn't seem to yield much elo anymore at decent thread counts.
HT increase the number of independent instructions in the pipeline, when you increase the number of threads.
Yes.
But for chess 16 cores running 16 threads, on a processor with no HT, yields very close in elo to 16 cores running 32 threads on a processor with HT (assuming same clock speed, efficiency etc).
User avatar
Ras
Posts: 2702
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: Stockfish up to 8 times faster on Apple M1

Post by Ras »

Werewolf wrote: Tue Dec 28, 2021 2:21 pmHowever, HT in chess doesn't seem to yield much elo anymore at decent thread counts.
But it does allow running more games in parallel.
Rasmus Althoff
https://www.ct800.net
Modern Times
Posts: 3753
Joined: Thu Jun 07, 2012 11:02 pm

Re: Stockfish up to 8 times faster on Apple M1

Post by Modern Times »

Ras wrote: Tue Dec 28, 2021 9:22 pm
Werewolf wrote: Tue Dec 28, 2021 2:21 pmHowever, HT in chess doesn't seem to yield much elo anymore at decent thread counts.
But it does allow running more games in parallel.
Allows it, but how does that affect the results ?
wickedpotus
Posts: 153
Joined: Sun May 16, 2021 5:33 pm
Full name: Aron Rodgriges

Re: Stockfish up to 8 times faster on Apple M1

Post by wickedpotus »

Modern Times wrote: Tue Dec 28, 2021 9:26 pm
Ras wrote: Tue Dec 28, 2021 9:22 pm
Werewolf wrote: Tue Dec 28, 2021 2:21 pmHowever, HT in chess doesn't seem to yield much elo anymore at decent thread counts.
But it does allow running more games in parallel.
Allows it, but how does that affect the results ?
Your point is completely moot. .its like arguing 30% speed increase does or does not bring visible elo under specific TCs etc- .... So why speed anything up?... Completely irrelevant and besides the discussion if HT (or clustered multithreading) is useful or not.
User avatar
Ras
Posts: 2702
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: Stockfish up to 8 times faster on Apple M1

Post by Ras »

Modern Times wrote: Tue Dec 28, 2021 9:26 pmAllows it, but how does that affect the results ?
You can validate a patch faster, or a subtler patch in the same time.
Rasmus Althoff
https://www.ct800.net
ydebilloez
Posts: 186
Joined: Tue Jun 27, 2017 11:01 pm
Location: Lubumbashi
Full name: Yves De Billoëz

Re: Stockfish up to 8 times faster on Apple M1

Post by ydebilloez »

Simple question. How many NPS can you get out of :
M1, M1 Max, Apple i7/i9, Windows/Linux notebook i7/i9, Windows/Linux desktop i7/i9?

My testing of the same program compiled for the different platforms gives the following conclusions:
2012 Mac i5: 2,5 * 4
2017 Dell i7: 6 * 8
2012 HP Xeon: 3,5 * 18
2020 HP centreon: 3,8 * 2
The latter is the available threads..... The first is the number of NPS per thread. Wonder to see how well M1 fares. And how this compares to the latest Ryzen.
Yves De Billoëz @ macchess belofte chess
Once owner of a Mephisto I, II, challenger, ... chess computer.