Best ratio CPU usage / level

Discussion of chess software programming and technical issues.

Moderator: Ras

Peperoni
Posts: 72
Joined: Sun Nov 01, 2020 5:27 pm
Full name: Richard Porti

Best ratio CPU usage / level

Post by Peperoni »

Hello,

We are thinking about doing a chess engine in C++ 20 that would run on mobile devices.
CPU is then a concern and we are trying to find the best approch to have a good ratio CPU usage/ level of the engine.
Do you guys think something with neural network weights would be lighter than the classical intensive CPU approch?

Thank you
smatovic
Posts: 3234
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: Best ratio CPU usage / level

Post by smatovic »

Peperoni wrote: Thu Nov 24, 2022 12:14 pm [...]
Do you guys think something with neural network weights would be lighter than the classical intensive CPU approch?
[...]
I doubt that, NNUE neural networks are currently implemented via vector-units (SSE, AVX2, NEON), which are more efficient than the CPU ALUs but I doubt that you will safe power usage with NNUE compared to classic HCE in an NPS or even Elo metric. SoCs have usual an dedicated neural engine, a TPU or MMAC unit, and a programmable GPU, might be worth to check out with an Lc0 CNN kind of approach.

--
Srdja