Android engines discussion etc.

Moderators: Elijah, Igbo, timetraveller

Skynet
Points: 0,00 
Status: Offline (Active 3 Hours, 6 Minutes ago)
Topics: 

Android engines discussion etc.

Post by Skynet »

Greetings folks! To avoid flood/spamming, i made this topic, for android engines discussion and other questions. :smile2:
Wasserman
Inactive User
Points: 50,00 
Posts: 3
Joined: 06/11/2019, 12:11
Status: Offline (Active 4 Years, 5 Months, 1 Week, 6 Days, 3 Hours, 42 Minutes ago)
Topics: 0
Reputation: 0
Been thanked: 1 time

Android engines discussion etc.

Post by Wasserman »

Can you make lc0 for android ? :sm178:
Skynet
Points: 0,00 
Status: Offline (Active 3 Hours, 6 Minutes ago)
Topics: 

Android engines discussion etc.

Post by Skynet »

Wasserman wrote:Can you make lc0 for android ? :sm178:
Nope, there is available android version on GitHub.
kramnik

Top contribute Forum
Forum Contributions
Points: 40 305,00 
Posts: 1924
Joined: 04/11/2019, 14:45
Status: Offline (Active 3 Months, 2 Days, 7 Hours, 24 Minutes ago)
Medals: 1
Topics: 71
Reputation: 2388
Location: North-Italy
Has thanked: 1185 times
Been thanked: 2949 times

Cfish for Android

Post by kramnik »

How do you compile for Android? Any attempt from me was unsuccesful. I've tried to install clang for mingw the last weeks but it failed in the linking phase.
hagtorp wrote:Two experimental compilations of Cfish-220719 (latest official sources). New: Clang-9.0.0 compiler. New libraries in both compilations. PGO + LTO optimization. Write about the problems, be sure to indicate the version of the android and the processor.
https://app.box.com/s/l2piyubioc6d2qx0c52lfat370280id3
hagtorp
Forum Contributions
Points: 19 796,00 
Posts: 159
Joined: 04/11/2019, 3:15
Status: Offline (Active 6 Months, 3 Weeks, 6 Days, 10 Hours, 27 Minutes ago)
Topics: 3
Reputation: 30
Has thanked: 9 times
Been thanked: 24 times

Cfish for Android

Post by hagtorp »

[quote="kramnik"]How do you compile for Android? Any attempt from me was unsuccesful. I've tried to install clang for mingw the last weeks but it failed in the linking phase.

I am building in a Linux environment.
kramnik

Top contribute Forum
Forum Contributions
Points: 40 305,00 
Posts: 1924
Joined: 04/11/2019, 14:45
Status: Offline (Active 3 Months, 2 Days, 7 Hours, 24 Minutes ago)
Medals: 1
Topics: 71
Reputation: 2388
Location: North-Italy
Has thanked: 1185 times
Been thanked: 2949 times

Cfish for Android

Post by kramnik »

So you have just to use clang under linux? No other softwares needed like the Android NDK?
hagtorp wrote:
kramnik wrote:How do you compile for Android? Any attempt from me was unsuccesful. I've tried to install clang for mingw the last weeks but it failed in the linking phase.

I am building in a Linux environment.
hagtorp
Forum Contributions
Points: 19 796,00 
Posts: 159
Joined: 04/11/2019, 3:15
Status: Offline (Active 6 Months, 3 Weeks, 6 Days, 10 Hours, 27 Minutes ago)
Topics: 3
Reputation: 30
Has thanked: 9 times
Been thanked: 24 times

Cfish for Android

Post by hagtorp »

kramnik wrote:So you have just to use clang under linux? No other softwares needed like the Android NDK?
No, NDK is needed. I just select the necessary libraries separately.
kramnik

Top contribute Forum
Forum Contributions
Points: 40 305,00 
Posts: 1924
Joined: 04/11/2019, 14:45
Status: Offline (Active 3 Months, 2 Days, 7 Hours, 24 Minutes ago)
Medals: 1
Topics: 71
Reputation: 2388
Location: North-Italy
Has thanked: 1185 times
Been thanked: 2949 times

Cfish for Android

Post by kramnik »

Thank you very much for the explanation. What are the libraries? And how do you add them to the compilation process?
hagtorp wrote:
kramnik wrote:So you have just to use clang under linux? No other softwares needed like the Android NDK?
No, NDK is needed. I just select the necessary libraries separately.
Skynet
Points: 0,00 
Status: Offline (Active 3 Hours, 6 Minutes ago)
Topics: 

Android engines discussion etc.

Post by Skynet »

During the test android vs PC, first i tried Stockfish on older smartphone, Samsung DUOS GT-i9060, android 4.2.2. GUI Cfa, hash 128, 4 cores, 10sec per move, Stockfish stuck in thinking mode for more than 40 sec, i aborted 3 games. After that i changed hash to 32 and cores to 3, it stuck again, twice.
On my other Smartphone, LG 32bit, Qualcomm Snapdragon, android 6.0. It also stuck, again in thinking mode, twice.. I don't know if somebody else noticed this, but it happened to me. Usually Stockfish gets stuck in losing positions.
Image
hagtorp
Forum Contributions
Points: 19 796,00 
Posts: 159
Joined: 04/11/2019, 3:15
Status: Offline (Active 6 Months, 3 Weeks, 6 Days, 10 Hours, 27 Minutes ago)
Topics: 3
Reputation: 30
Has thanked: 9 times
Been thanked: 24 times

Android engines discussion etc.

Post by hagtorp »

Alex1976 wrote:During the test android vs PC
Thanks. Just now I noticed a marriage in the engine. It is in the version of armv7. Her speed is almost two times lower than usual.
hagtorp
Forum Contributions
Points: 19 796,00 
Posts: 159
Joined: 04/11/2019, 3:15
Status: Offline (Active 6 Months, 3 Weeks, 6 Days, 10 Hours, 27 Minutes ago)
Topics: 3
Reputation: 30
Has thanked: 9 times
Been thanked: 24 times

Android engines discussion etc.

Post by hagtorp »

Try this version. It seems to be fixed. There was a bug during compilation.

https://app.box.com/s/p826ptv5bo1mrhzx227wi7tcemotxh3l
Skynet
Points: 0,00 
Status: Offline (Active 3 Hours, 6 Minutes ago)
Topics: 

Android engines discussion etc.

Post by Skynet »

hagtorp wrote:Try this version. It seems to be fixed. There was a bug during compilation.

https://app.box.com/s/p826ptv5bo1mrhzx227wi7tcemotxh3l
Working great, has speeded up, although you know it already. :sm36:
Skynet
Points: 0,00 
Status: Offline (Active 3 Hours, 6 Minutes ago)
Topics: 

Android engines discussion etc.

Post by Skynet »

Greetings android folks! :beer:
Couple questions.

1) hagtorp, is there any progress in making cutechess for android 9?

2) Has anyone managed to run cutechess on android 7 and up, until android 8+? I have new android 9, don't want to downgrade it. beers
hagtorp
Forum Contributions
Points: 19 796,00 
Posts: 159
Joined: 04/11/2019, 3:15
Status: Offline (Active 6 Months, 3 Weeks, 6 Days, 10 Hours, 27 Minutes ago)
Topics: 3
Reputation: 30
Has thanked: 9 times
Been thanked: 24 times

Android engines discussion etc.

Post by hagtorp »

Alex1976 wrote:Greetings android folks! :beer:
Couple questions.

1) hagtorp, is there any progress in making cutechess for android 9?

2) Has anyone managed to run cutechess on android 7 and up, until android 8+? I have new android 9, don't want to downgrade it. beers
I'm already close, I think, to creating cutechess-cli for Android 8.1 and 9. The whole difficulty is that cutechess-cli cannot be built for android with normal dynamic libraries, since there are a huge number of intolerable dependencies and the program will not start outside the environment development. Therefore, we need a static assembly, for which you need to assemble Qt libraries into statics. There are difficulties here. I already patched Qt sources and the next days I will try to build libraries, and then the GUI. So you have to wait.
stvs
Forum Contributions
Points: 14 942,00 
Posts: 209
Joined: 04/11/2019, 10:54
Status: Offline (Active 1 Year, 5 Days, 7 Hours, 46 Minutes ago)
Topics: 2
Reputation: 7
Has thanked: 140 times
Been thanked: 15 times

Android engines discussion etc.

Post by stvs »

alex,hagtorp one question:its possible the progress of stockish for android to be a little distorted because cutechess?
i mean this gui is well tested to show the real progress?
i will prepare one tournament under chess for android to measure the sf progress until now: 21/10/19 vs st 10 (2+1s TC)
the first tourney will be for arm7 versions,give me some time:)
Post Reply

Return to “Mobile Chess Software, Engines”