M1 Apple Silicon for Chess?

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

Moderator: Ras

User avatar
jshriver
Posts: 1356
Joined: Wed Mar 08, 2006 9:41 pm
Location: Morgantown, WV, USA

Re: M1 Apple Silicon for Chess?

Post by jshriver »

Do you know if there is an OpenCL implimentation for M1? Curious if lc0 can use the GPU, or any OpenCL apps like hashcat.
acepoint_de
Posts: 86
Joined: Tue Jun 11, 2013 1:14 am

Re: M1 Apple Silicon for Chess?

Post by acepoint_de »

jshriver wrote: Sun Mar 21, 2021 12:20 am Do you know if there is an OpenCL implimentation for M1? Curious if lc0 can use the GPU, or any OpenCL apps like hashcat.
Yes, there is:

Code: Select all

% ./lc0-0.27.0  
       _
|   _ | |
|_ |_ |_| v0.27.0+git.unknown built Feb 23 2021
Found configuration file: ./lc0.config
uci
id name Lc0 v0.27.0+git.unknown
id author The LCZero Authors.
option name WeightsFile type string default weights/LS15-20x256SE-jj-9-75000000.pb.gz
option name Backend type combo default opencl var opencl var blas var eigen var random var check var recordreplay var roundrobin var multiplexing var demux
option name BackendOptions type string default 

Code: Select all

% ./lc0-0.27.0 benchmark
       _
|   _ | |
|_ |_ |_| v0.27.0+git.unknown built Feb 23 2021
Found pb network file: ./weights_42850.txt.gz
Creating backend [opencl]...
OpenCL, maximum batch size set to 16.
Initializing OpenCL.
Detected 1 OpenCL platforms.
Platform version: OpenCL 1.2 (Dec 21 2020 17:26:51)
Platform profile: FULL_PROFILE
Platform name:    Apple
Platform vendor:  Apple
Device ID:      0
Device name:    Apple M1
Device type:    GPU
Device vendor:  Apple
Device driver:  1.2 1.0
...
===========================
Total time (ms) : 350347
Nodes searched  : 126205
Nodes/second    : 360
Ciao

acepoint
acepoint_de
Posts: 86
Joined: Tue Jun 11, 2013 1:14 am

Re: M1 Apple Silicon for Chess?

Post by acepoint_de »

And here for comparison the numbers with backend blas:

Code: Select all

% ./lc0-0.27.0 % ./lc0-0.27.0 benchmark --backend=blas
       _
|   _ | |
|_ |_ |_| v0.27.0+git.unknown built Feb 23 2021
Found pb network file: ./weights_42850.txt.gz
Creating backend [blas]...
BLAS vendor: Apple vecLib.
BLAS max batch size is 256.
...
===========================
Total time (ms) : 356653
Nodes searched  : 91821
Nodes/second    : 257
Ciao

acepoint
acepoint_de
Posts: 86
Joined: Tue Jun 11, 2013 1:14 am

Re: M1 Apple Silicon for Chess?

Post by acepoint_de »

Two updates and two new builds...

https://acepoint.de/two-updates-and-two-new-engines/

Ciao

acepoint
User avatar
AlexChess
Posts: 1562
Joined: Sat Feb 06, 2021 8:06 am
Full name: Alex Morales

Re: M1 Apple Silicon for Chess?

Post by AlexChess »

Thank you!
AlexChess
PS: Are you experiencing frequent commons Kernel Panics for overflow with M1? I have finally solved but I don't know which worked between SOS fix in Disk utilities, CleanmyMax X, Macbuster8 or Etrecheck removing something residual from Zoom unistallation.

https://forums.macrumors.com/threads/re ... 1.2276724/
Chess engines and dedicated chess computers fan since 1981 :D macOS Sequoia 16GB-512GB, Windows 11 & Ubuntu ARM64.
ProteusSF Dev Forum
User avatar
AlexChess
Posts: 1562
Joined: Sat Feb 06, 2021 8:06 am
Full name: Alex Morales

Re: M1 Apple Silicon for Chess?

Post by AlexChess »

acepoint_de wrote: Wed Mar 24, 2021 10:48 pm Two updates and two new builds...

https://acepoint.de/two-updates-and-two-new-engines/

Ciao

acepoint
Another kernel panic (probable overflow) today after a week... :(

https://www.reddit.com/r/mac/comments/m ... id_kernel/
Chess engines and dedicated chess computers fan since 1981 :D macOS Sequoia 16GB-512GB, Windows 11 & Ubuntu ARM64.
ProteusSF Dev Forum
acepoint_de
Posts: 86
Joined: Tue Jun 11, 2013 1:14 am

Re: M1 Apple Silicon for Chess?

Post by acepoint_de »

AlexChess wrote: Fri Mar 26, 2021 12:14 pm Another kernel panic (probable overflow) today after a week... :(

https://www.reddit.com/r/mac/comments/m ... id_kernel/
I never had one yet. But I also have no spare time at the moment to check the postings from the forums you mentioned.

Ciao

acepoint
cpeters
Posts: 186
Joined: Wed Feb 17, 2021 7:44 pm
Full name: Christian Petersen

Re: M1 Apple Silicon for Chess?

Post by cpeters »



Maybe a year and Linux will at least half decently run on it hopefully.

I'm very excitedt for the new models (soon to be announced?)!
User avatar
AlexChess
Posts: 1562
Joined: Sat Feb 06, 2021 8:06 am
Full name: Alex Morales

Re: M1 Apple Silicon for Chess?

Post by AlexChess »

cpeters wrote: Fri Mar 26, 2021 8:39 pm

Maybe a year and Linux will at least half decently run on it hopefully.

I'm very excitedt for the new models (soon to be announced?)!
Still too much experimental. I run Ubuntu ARM64 on Parallels Desktop M1. It is stable and fast, but there aren't M1 IDE and UCI chess engines available until now.
Chess engines and dedicated chess computers fan since 1981 :D macOS Sequoia 16GB-512GB, Windows 11 & Ubuntu ARM64.
ProteusSF Dev Forum
User avatar
Ras
Posts: 2696
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: M1 Apple Silicon for Chess?

Post by Ras »

cpeters wrote: Fri Mar 26, 2021 8:39 pmMaybe a year and Linux will at least half decently run on it hopefully.
That will never happen unless you count software rendering (i.e. no graphics acceleration) as even somewhat decent. Apple will not support any OSS driver development because they want a locked and closed system.
Rasmus Althoff
https://www.ct800.net