Android engines discussion etc.

Moderators: Elijah, Igbo, timetraveller

MichaelM
I've been banned!
Points: 17 852,00 
Posts: 234
Joined: 27/08/2020, 23:44
Status: Offline (Active 8 Months, 2 Weeks, 6 Days, 6 Hours, 35 Minutes ago)
Topics: 3
Reputation: 255
1
Has thanked: 389 times
Been thanked: 362 times

Re: Stockfish+ for Android

Post by MichaelM »

I posted this already on the other thread but I am extremely curious: :sun_bespectacled:

On my Android phone (SD 662) with threads=4 , multiPV=4 and MCTS=on the nps output during analysis is, depending on the position, more than two times higher than with MCTS=off. The four PV lines are often quite similar. I'm surprised and I wonder, e.g., why the patch from snicolet never reached SF master? Or are the two nps-outputs just not comparable?
MichaelM
I've been banned!
Points: 17 852,00 
Posts: 234
Joined: 27/08/2020, 23:44
Status: Offline (Active 8 Months, 2 Weeks, 6 Days, 6 Hours, 35 Minutes ago)
Topics: 3
Reputation: 255
1
Has thanked: 389 times
Been thanked: 362 times

Re: Stockfish+ for Android

Post by MichaelM »

MichaelM wrote: 02/01/2022, 15:05 I posted this already on the other thread but I am extremely curious: :sun_bespectacled:

On my Android phone (SD 662) with threads=4 , multiPV=4 and MCTS=on the nps output during analysis is, depending on the position, more than two times higher than with MCTS=off. The four PV lines are often quite similar. I'm surprised and I wonder, e.g., why the patch from snicolet never reached SF master? Or are the two nps-outputs just not comparable?
Can someone please repeat my tests with about the same settings? Firefather couldn't find big differences w or w/o MCTS on Windows (see other thread).
leonhurricaneX
Forum Contributions
Points: 15 587,00 
Posts: 233
Joined: 19/01/2020, 17:51
Status: Offline (Active 2 Weeks, 1 Day, 1 Hour, 43 Minutes ago)
Topics: 14
Reputation: 229
Location: Edge of the World
Has thanked: 159 times
Been thanked: 188 times

Re: Android engines discussion etc.

Post by leonhurricaneX »

Archimedes wrote: 29/03/2022, 11:22
kramnik wrote: 29/03/2022, 10:49Wow! You're a genius. [thank you Could you write a tutorial on how to compile Stockfish in apk archives? That's just whar I was searching for: replacing mere binaries with installables to be able to male tourbaments with Acid Ape Pro. :sm36:
You need Android Studio and Android libraries from https://github.com/peterosterlund2/chessenginesupport-androidlib which is a fork from https://github.com/gkalab/chessenginesupport-androidlib. Thanks to gkalab for offering this Android libraries. There is also a documentation, how to implement this libraries in a new project.
I have a new Project with OEX library with Custom fonts,ScrollView and splash screen. Because of lack of time I am not able to create flist of engines files.

If somebody is intrested in my projects can pm me to volunteer.
► Show Spoiler
Lotus340
Forum Contributions
Points: 11 741,00 
Posts: 70
Joined: 16/03/2022, 13:56
Status: Offline (Active 3 Days, 18 Hours, 44 Minutes ago)
Topics: 6
Reputation: 42
Has thanked: 38 times
Been thanked: 86 times

Re: Combusken for Android

Post by Lotus340 »

leonhurricaneX wrote: 08/04/2020, 3:16 sarcastic_hand obviously if its in the chess engine section it will be a engine not a book. If you want use it click on the link and than click on the Assets and select the specific build for your device.
PavelFriend wrote:Hi this is chess engine or is book?
It's not that obvious. The engine ends in a .bin extension, which is confusing. I also thought there was a mistake. But I put it into the Droidfish uci folder and yes, it is an engine.

Tip: I renamed the engine Combusken_2.0, removing the .bin extension. It still works without that.
Skynet
Points: 0,00 
Status: Offline (Active 2 Hours, 59 Minutes ago)
Topics: 

Re: Combusken for Android

Post by Skynet »

Lotus340 wrote: 31/03/2022, 3:56
leonhurricaneX wrote: 08/04/2020, 3:16 sarcastic_hand obviously if its in the chess engine section it will be a engine not a book. If you want use it click on the link and than click on the Assets and select the specific build for your device.
PavelFriend wrote:Hi this is chess engine or is book?
It's not that obvious. The engine ends in a .bin extension, which is confusing. I also thought there was a mistake. But I put it into the Droidfish uci folder and yes, it is an engine.

Tip: I renamed the engine Combusken_2.0, removing the .bin extension. It still works without that.
Bin books ending up with .bin, while android engines ending up with arm or armv (7 or 8). So it is obvious.
IbaiBuR

Top contribute Forum
Administrators
Points: 7 707,00 
Forum Contributions
Posts: 149
Joined: 05/01/2021, 15:29
Status: Offline (Active 4 Hours, 42 Minutes ago)
Medals: 1
Topics: 6
Reputation: 252
Location: Madrid, ES
Has thanked: 64 times
Been thanked: 319 times

Re: Android engines discussion etc.

Post by IbaiBuR »

Hello, does anyone know if ShashChess/BrainLearn saves an experience file when running a tourney with Chess for Android?

If so, where can I find the experience file generated?

Thanks in advance,

Ibai
PvlCc
Forum Contributions
Points: 6 000,00 
Posts: 53
Joined: 02/01/2022, 16:11
Status: Offline (Active 11 Months, 4 Days, 2 Hours, 28 Minutes ago)
Topics: 1
Reputation: 26
Has thanked: 191 times
Been thanked: 57 times

Re: Android engines discussion etc.

Post by PvlCc »

on home file creating both 2 bin file
Archimedes

Android Engines Top Active Users
Forum Contributions
Points: 42 582,00 
Posts: 2059
Joined: 04/11/2019, 21:13
Status: Offline (Active 7 Hours, 46 Minutes ago)
Medals: 2
Topics: 158
Reputation: 7111
Been thanked: 6477 times

Re: Android engines discussion etc.

Post by Archimedes »

IbaiBuR wrote: 17/05/2022, 0:48 Hello, does anyone know if ShashChess/BrainLearn saves an experience file when running a tourney with Chess for Android?

If so, where can I find the experience file generated?
/storage/emulated/0/experience.bin

Both engines are using the same file name and location for the experience file. :boh: Houston, we have a problem.
IbaiBuR

Top contribute Forum
Administrators
Points: 7 707,00 
Forum Contributions
Posts: 149
Joined: 05/01/2021, 15:29
Status: Offline (Active 4 Hours, 42 Minutes ago)
Medals: 1
Topics: 6
Reputation: 252
Location: Madrid, ES
Has thanked: 64 times
Been thanked: 319 times

Re: Android engines discussion etc.

Post by IbaiBuR »

Perfect, is there a way to select an specific location for the experience to be saved on Android?
superbatil
Forum Contributions
Points: 14 010,00 
Posts: 76
Joined: 24/02/2022, 11:23
Status: Offline (Active 1 Week, 2 Days, 12 Hours, 39 Minutes ago)
Topics: 0
Reputation: 17
Has thanked: 1 time
Been thanked: 51 times

Re: Android engines discussion etc.

Post by superbatil »

Sir Archimedes, why this format not working on my nougat 7.0?

Code: Select all

make -j 2 profile-build ARCH=armv8 COMP=clang COMPCXX=clang++
......but this one is working

Code: Select all

make -j 2 profile-build ARCH=armv8 COMP=ndk COMPCXX=clang++
LittleJoe

Top contribute Forum Engines Maker
Forum Contributions
Points: 14 078,00 
Posts: 327
Joined: 17/10/2020, 22:28
Status: Offline (Active 1 Day, 10 Hours, 27 Minutes ago)
Medals: 2
Topics: 5
Reputation: 506
Has thanked: 349 times
Been thanked: 671 times

Re: Android engines discussion etc.

Post by LittleJoe »

superbatil wrote: 25/05/2022, 13:25 Sir Archimedes, why this format not working on my nougat 7.0?

Code: Select all

make -j 2 profile-build ARCH=armv8 COMP=clang COMPCXX=clang++
......but this one is working

Code: Select all

make -j 2 profile-build ARCH=armv8 COMP=ndk COMPCXX=clang++
For me, both methods work fine. However, I usually use a shorter command for a profile build with clang:

Code: Select all

make -j profile-build ARCH=armv8 COMP=clang 
Maybe this works for you too.
(Btw: With "COMP=ndk" this does NOT work!)
superbatil
Forum Contributions
Points: 14 010,00 
Posts: 76
Joined: 24/02/2022, 11:23
Status: Offline (Active 1 Week, 2 Days, 12 Hours, 39 Minutes ago)
Topics: 0
Reputation: 17
Has thanked: 1 time
Been thanked: 51 times

Re: Android engines discussion etc.

Post by superbatil »

LittleJoe wrote: 25/05/2022, 16:04
superbatil wrote: 25/05/2022, 13:25 Sir Archimedes, why this format not working on my nougat 7.0?

Code: Select all

make -j 2 profile-build ARCH=armv8 COMP=clang COMPCXX=clang++
......but this one is working

Code: Select all

make -j 2 profile-build ARCH=armv8 COMP=ndk COMPCXX=clang++
For me, both methods work fine. However, I usually use a shorter command for a profile build with clang:

Code: Select all

make -j profile-build ARCH=armv8 COMP=clang 
Maybe this works for you too.
(Btw: With "COMP=ndk" this does NOT work!)
If I will used this( -j) without number it uses 8 core on compiling.
LittleJoe

Top contribute Forum Engines Maker
Forum Contributions
Points: 14 078,00 
Posts: 327
Joined: 17/10/2020, 22:28
Status: Offline (Active 1 Day, 10 Hours, 27 Minutes ago)
Medals: 2
Topics: 5
Reputation: 506
Has thanked: 349 times
Been thanked: 671 times

Re: Android engines discussion etc.

Post by LittleJoe »

superbatil wrote: 25/05/2022, 16:32
LittleJoe wrote: 25/05/2022, 16:04
superbatil wrote: 25/05/2022, 13:25 Sir Archimedes, why this format not working on my nougat 7.0?

Code: Select all

make -j 2 profile-build ARCH=armv8 COMP=clang COMPCXX=clang++
......but this one is working

Code: Select all

make -j 2 profile-build ARCH=armv8 COMP=ndk COMPCXX=clang++
For me, both methods work fine. However, I usually use a shorter command for a profile build with clang:

Code: Select all

make -j profile-build ARCH=armv8 COMP=clang 
Maybe this works for you too.
(Btw: With "COMP=ndk" this does NOT work!)
If I will used this( -j) without number it uses 8 core on compiling.
You can certainly use it without "-j" or with only 2 cores. My phone has enough RAM for all 8 cores... thumbsup

Edit: Try your own non-working method without '-j'. Could be again a problem with parallel compiling on your phone.
LittleJoe

Top contribute Forum Engines Maker
Forum Contributions
Points: 14 078,00 
Posts: 327
Joined: 17/10/2020, 22:28
Status: Offline (Active 1 Day, 10 Hours, 27 Minutes ago)
Medals: 2
Topics: 5
Reputation: 506
Has thanked: 349 times
Been thanked: 671 times

Re: Android engines discussion etc.

Post by LittleJoe »

Has anyone already installed the pre-release of the termux-ndk (ndk-r24)?

https://github.com/Lzhiyong/termux-ndk/releases

Biggest advantage is, that It uses clang 14.0.1, while the latest stable release still uses clang 12.0.x.

If someone has installed this pre-release please share if there are any problems. Thanks in advance. :sm36:
superbatil
Forum Contributions
Points: 14 010,00 
Posts: 76
Joined: 24/02/2022, 11:23
Status: Offline (Active 1 Week, 2 Days, 12 Hours, 39 Minutes ago)
Topics: 0
Reputation: 17
Has thanked: 1 time
Been thanked: 51 times

Re: Android engines discussion etc.

Post by superbatil »

LittleJoe wrote: 15/06/2022, 11:16 Has anyone already installed the pre-release of the termux-ndk (ndk-r24)?

https://github.com/Lzhiyong/termux-ndk/releases

Biggest advantage is, that It uses clang 14.0.1, while the latest stable release still uses clang 12.0.x.

If someone has installed this pre-release please share if there are any problems. Thanks in advance. :sm36:
That's what I'm using now on termux. I think this is must stable than ndk-r23b.
Post Reply

Return to “Mobile Chess Software, Engines”