Chess Engines binaries for Raspberry Pi 4 Linux 64 bits

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

Moderators: hgm, Rebel, chrisw

Pi4Chess
Posts: 253
Joined: Mon Nov 16, 2020 12:13 pm
Full name: Manuel Rivera

Re: Chess Engines binaries for Raspberry Pi 4 Linux 64 bits

Post by Pi4Chess »

xr_a_y wrote: Sat Jan 16, 2021 12:00 pm Hi,

it seems I try and maybe succeed in compiling a RPi4 version of Minic :D
Can you please try it ?
https://github.com/tryingsomestuff/Mini ... _3.03_rpi4
I have no RPi4 at home...
Nice to see an author involved ☺️ I will try it tomorrow.
Pi4Chess
Posts: 253
Joined: Mon Nov 16, 2020 12:13 pm
Full name: Manuel Rivera

Re: Chess Engines binaries for Raspberry Pi 4 Linux 64 bits

Post by Pi4Chess »

jshriver wrote: Sat Jan 16, 2021 1:49 pm Adding my first engine pack after seeing Dan Corbit's post on tactical engines. :D I've also included the recommended neural net and placed it in the eval directory as recommended.

Original source:
https://github.com/MichaelB7/Stockfish/releases/tag/NN

Engine Names:
* Black Diamond XX-NN
* Bluefish XX-NN
* Honey XX-NN
* Stockfish XX-NN
* Weakfish XX-NN

* Black Diamond XX-r3
* Bluefish XX-r3
* Honey XX-r3
* Stockfish XX-r3
* Weakfish XX-r3

File:
https://chess.nyc3.cdn.digitaloceanspac ... 21.tar.bz2

Pi4Chess feel free to incorporate these into your own megapack. If you ever want I can help mirror your files on my CDN account.
Very nice ! Yes feel free to mirror all my compiles.
I will try your compiles of MikeB modded engines tomorrow also.
Thanks
User avatar
jshriver
Posts: 1342
Joined: Wed Mar 08, 2006 9:41 pm
Location: Morgantown, WV, USA

Re: Chess Engines binaries for Raspberry Pi 4 Linux 64 bits

Post by jshriver »

xr_a_y wrote: Sat Jan 16, 2021 12:00 pm Hi,

it seems I try and maybe succeed in compiling a RPi4 version of Minic :D
Can you please try it ?
https://github.com/tryingsomestuff/Mini ... _3.03_rpi4
I have no RPi4 at home...
It does not work on 64bit Pi4's, however it will run on 32bit Pi Zero W :)

Code: Select all

 $ ./minic_3.03_rpi4
info string This is Minic version 3.03 (NNUE available)
uci
info string Info  2021-01-17 00:08:26-019: No NNUE net loaded, using standard ev                                                                                                             aluation
id name Minic 3.03
id author Vivien Clauzon
User avatar
xr_a_y
Posts: 1871
Joined: Sat Nov 25, 2017 2:28 pm
Location: France

Re: Chess Engines binaries for Raspberry Pi 4 Linux 64 bits

Post by xr_a_y »

jshriver wrote: Sun Jan 17, 2021 6:09 am
xr_a_y wrote: Sat Jan 16, 2021 12:00 pm Hi,

it seems I try and maybe succeed in compiling a RPi4 version of Minic :D
Can you please try it ?
https://github.com/tryingsomestuff/Mini ... _3.03_rpi4
I have no RPi4 at home...
It does not work on 64bit Pi4's, however it will run on 32bit Pi Zero W :)

Code: Select all

 $ ./minic_3.03_rpi4
info string This is Minic version 3.03 (NNUE available)
uci
info string Info  2021-01-17 00:08:26-019: No NNUE net loaded, using standard ev                                                                                                             aluation
id name Minic 3.03
id author Vivien Clauzon
Ok, to compile this I am using "/opt/cross-pi-gcc/bin/arm-linux-gnueabihf-g++" from the toolkit.
So I have two questions
1°) how should I name this working 32bit Pi Zero release ?
2°) how can I target 64bit Pi4 when cross compiling under linux ?

Thanks a lot
Pi4Chess
Posts: 253
Joined: Mon Nov 16, 2020 12:13 pm
Full name: Manuel Rivera

Re: Chess Engines binaries for Raspberry Pi 4 Linux 64 bits

Post by Pi4Chess »

xr_a_y wrote: Sat Jan 16, 2021 12:00 pm Hi,

it seems I try and maybe succeed in compiling a RPi4 version of Minic :D
Can you please try it ?
https://github.com/tryingsomestuff/Mini ... _3.03_rpi4
I have no RPi4 at home...
Sadly it does not work.
It is 32 bits and not 64 bits.
Also It seems a static build since it is 1,6mb file and my compiles for your engine are rathe 617Kb. That's not a problem.
Pi4Chess
Posts: 253
Joined: Mon Nov 16, 2020 12:13 pm
Full name: Manuel Rivera

Re: Chess Engines binaries for Raspberry Pi 4 Linux 64 bits

Post by Pi4Chess »

jshriver wrote: Sat Jan 16, 2021 1:49 pm Adding my first engine pack after seeing Dan Corbit's post on tactical engines. :D I've also included the recommended neural net and placed it in the eval directory as recommended.

Original source:
https://github.com/MichaelB7/Stockfish/releases/tag/NN

Engine Names:
* Black Diamond XX-NN
* Bluefish XX-NN
* Honey XX-NN
* Stockfish XX-NN
* Weakfish XX-NN

* Black Diamond XX-r3
* Bluefish XX-r3
* Honey XX-r3
* Stockfish XX-r3
* Weakfish XX-r3

File:
https://chess.nyc3.cdn.digitaloceanspac ... 21.tar.bz2

Pi4Chess feel free to incorporate these into your own megapack. If you ever want I can help mirror your files on my CDN account.
I quickly tested BlackDiamond NN and may be there is a peformance problem since it runs at 90 kns and less.
I don't have time today to try to compile myself but i remember the Bluefish i compiled (no NN though) was running way more than 1000 kns.
Pi4Chess
Posts: 253
Joined: Mon Nov 16, 2020 12:13 pm
Full name: Manuel Rivera

Re: Chess Engines binaries for Raspberry Pi 4 Linux 64 bits

Post by Pi4Chess »

xr_a_y wrote: Sun Jan 17, 2021 10:15 am Ok, to compile this I am using "/opt/cross-pi-gcc/bin/arm-linux-gnueabihf-g++" from the toolkit.
So I have two questions
1°) how should I name this working 32bit Pi Zero release ?
2°) how can I target 64bit Pi4 when cross compiling under linux ?

Thanks a lot
1) Rpi-linux 32bits
2) try to find a flag/option to force 64 bits compilation. But may be your cross lib is 32 bits only :-/
User avatar
xr_a_y
Posts: 1871
Joined: Sat Nov 25, 2017 2:28 pm
Location: France

Re: Chess Engines binaries for Raspberry Pi 4 Linux 64 bits

Post by xr_a_y »

Pi4Chess wrote: Sun Jan 17, 2021 12:01 pm
xr_a_y wrote: Sun Jan 17, 2021 10:15 am Ok, to compile this I am using "/opt/cross-pi-gcc/bin/arm-linux-gnueabihf-g++" from the toolkit.
So I have two questions
1°) how should I name this working 32bit Pi Zero release ?
2°) how can I target 64bit Pi4 when cross compiling under linux ?

Thanks a lot
1) Rpi-linux 32bits
2) try to find a flag/option to force 64 bits compilation. But may be your cross lib is 32 bits only :-/
Looks like I have to use g++-aarch64-linux-gnu probably.
What I don't get is if I have to use a separe toolkit to cross-compiled or if things like g++-aarch64-linux-gnu from my ubuntu will work.
Pi4Chess
Posts: 253
Joined: Mon Nov 16, 2020 12:13 pm
Full name: Manuel Rivera

Re: Chess Engines binaries for Raspberry Pi 4 Linux 64 bits

Post by Pi4Chess »

xr_a_y wrote: Sun Jan 17, 2021 12:16 pm
Pi4Chess wrote: Sun Jan 17, 2021 12:01 pm
xr_a_y wrote: Sun Jan 17, 2021 10:15 am Ok, to compile this I am using "/opt/cross-pi-gcc/bin/arm-linux-gnueabihf-g++" from the toolkit.
So I have two questions
1°) how should I name this working 32bit Pi Zero release ?
2°) how can I target 64bit Pi4 when cross compiling under linux ?

Thanks a lot
1) Rpi-linux 32bits
2) try to find a flag/option to force 64 bits compilation. But may be your cross lib is 32 bits only :-/
Looks like I have to use g++-aarch64-linux-gnu probably.
What I don't get is if I have to use a separe toolkit to cross-compiled or if things like g++-aarch64-linux-gnu from my ubuntu will work.
yes aarch64-linux-gnu is the lib to go with. build static and non static binaries. we will try them both
User avatar
jshriver
Posts: 1342
Joined: Wed Mar 08, 2006 9:41 pm
Location: Morgantown, WV, USA

Re: Chess Engines binaries for Raspberry Pi 4 Linux 64 bits

Post by jshriver »

I've been building natively using gcc or clang. I'll try tossing the armv8 (64bit) gcc on one of my x86 linux boxes and see if I can get it to work.

When I first checked your executable using file, i could see it was a 32bit elf format, why I tried it out on my pi zero (which is 32bit). My guess is you'll need a new toolchain to target pi 4's specifically because they are not only 64bit, but also armv8 based not armv7.

But your build runs beautiful on my 32bit pi's.

Cheers

As for the NN builds I think it's the NN causing the low nps. I wll have to retry running the r3 builds as they are cpu only and dont use a NN. Can't remember what they ran but knew it was much higher.