LC0 For Android!!! History Made!!

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

Moderators: hgm, Rebel, chrisw

Eduard
Posts: 1439
Joined: Sat Oct 27, 2018 12:58 am
Location: Germany
Full name: N.N.

Re: LC0 For Android!!! History Made!!

Post by Eduard »

The engine 32 bit unfortunately does not run on Android 5.1. It would be nice if there is also a compile for it. Thank you in advance!
lealgo
Posts: 21
Joined: Fri Nov 18, 2016 12:08 am
Location: Cuba
Full name: Leandro Álvarez González

Re: LC0 For Android!!! History Made!!

Post by lealgo »

Eduard wrote: Wed May 29, 2019 11:33 am The engine 32 bit unfortunately does not run on Android 5.1. It would be nice if there is also a compile for it. Thank you in advance!
Hi,

The wiki was updated with new builds, now targeting lower Android versions:
The 64 bit builds are compiled targeting the API Level 21 (equivalent to Android 5.0 Lollipop). The 32 bit ones target the API Level 16 (Android 4.1 Jelly Bean). Older Android versions may not work.
More here:

https://github.com/LeelaChessZero/lc0/w ... or-android

Regards,
Leandro
Eduard
Posts: 1439
Joined: Sat Oct 27, 2018 12:58 am
Location: Germany
Full name: N.N.

Re: LC0 For Android!!! History Made!!

Post by Eduard »

Thanks! I will testing and hope it works.
supersharp77
Posts: 1242
Joined: Sat Jul 05, 2014 7:54 am
Location: Southwest USA

Re: LC0 For Android!!! History Made!!

Post by supersharp77 »

lealgo wrote: Wed May 29, 2019 4:59 pm
Eduard wrote: Wed May 29, 2019 11:33 am The engine 32 bit unfortunately does not run on Android 5.1. It would be nice if there is also a compile for it. Thank you in advance!
Hi,

The wiki was updated with new builds, now targeting lower Android versions:
The 64 bit builds are compiled targeting the API Level 21 (equivalent to Android 5.0 Lollipop). The 32 bit ones target the API Level 16 (Android 4.1 Jelly Bean). Older Android versions may not work.
More here:

https://github.com/LeelaChessZero/lc0/w ... or-android

Regards,
Leandro
New builds for a wider support of Android versions!!!! Thank You My Friend!!! :D :wink:

aarch64 builds for Android 5.0 and up
armv7a builds for Android 4.1 and up

https://github.com/LeelaChessZero/lc0/f ... -api21.zip

https://github.com/LeelaChessZero/lc0/f ... 1-48x5.zip

https://github.com/LeelaChessZero/lc0/f ... -api21.zip

https://github.com/LeelaChessZero/lc0/f ... -api21.zip

https://github.com/LeelaChessZero/lc0/f ... -api16.zip

https://github.com/LeelaChessZero/lc0/f ... 6-48x5.zip

https://github.com/LeelaChessZero/lc0/f ... -api16.zip
Eduard
Posts: 1439
Joined: Sat Oct 27, 2018 12:58 am
Location: Germany
Full name: N.N.

Re: LC0 For Android!!! History Made!!

Post by Eduard »

Great, "lc0 api16 32bit' works now under Android 5.1 32-bit!
Aleksei
Posts: 25
Joined: Fri Jul 06, 2018 1:14 am
Full name: Aleksei

Re: LC0 For Android!!! History Made!!

Post by Aleksei »

Congrats, arm7 api 16 working fine on 32 bit device! I have a question, what is the default hash size that engine is using, and how can i change it?
I suppose MinibatchSize and MaxPrefetch dosen't have anything to do with hash, right? :oops:
Image
lealgo
Posts: 21
Joined: Fri Nov 18, 2016 12:08 am
Location: Cuba
Full name: Leandro Álvarez González

Re: LC0 For Android!!! History Made!!

Post by lealgo »

Aleksei wrote: Wed May 29, 2019 7:23 pm Congrats, arm7 api 16 working fine on 32 bit device! I have a question, what is the default hash size that engine is using, and how can i change it?
I suppose MinibatchSize and MaxPrefetch dosen't have anything to do with hash, right? :oops:
Lc0 doesn't use a traditional transposition table. The most similar parameter to hash would be NNCacheSize.
--nncache=0..999999999
Number of positions to store in a memory cache. A large cache can speed up
searching, but takes memory.
[UCI: NNCacheSize DEFAULT: 200000 MIN: 0 MAX: 999999999]
Also for higher NPS with blas on these devices, I recommend the following:
- set the Threads value up to 8
- set MaxPrefetch to 0

Regards,
Leandro
supersharp77
Posts: 1242
Joined: Sat Jul 05, 2014 7:54 am
Location: Southwest USA

Re: LC0 For Android!!! History Made!!

Post by supersharp77 »

Eduard wrote: Wed May 29, 2019 6:40 pm Great, "lc0 api16 32bit' works now under Android 5.1 32-bit!
New compiles Arm7 finally working in Droidfish (Modified APK for LC0) none of the arm7 compiles worked in any of the old versions of ChessForAndroid 5.6..5.9...6.15...engine would only load and work in the very latest version of Chessforandroid (May 28 2019 update) embedded weights version working less well than version with seperate weights (moves instantly)
testing underway!! :) :wink:
lealgo
Posts: 21
Joined: Fri Nov 18, 2016 12:08 am
Location: Cuba
Full name: Leandro Álvarez González

Re: LC0 For Android!!! History Made!!

Post by lealgo »

supersharp77 wrote: Wed May 29, 2019 9:07 pm
Eduard wrote: Wed May 29, 2019 6:40 pm Great, "lc0 api16 32bit' works now under Android 5.1 32-bit!
New compiles Arm7 finally working in Droidfish (Modified APK for LC0) none of the arm7 compiles worked in any of the old versions of ChessForAndroid 5.6..5.9...6.15...engine would only load and work in the very latest version of Chessforandroid (May 28 2019 update) embedded weights version working less well than version with seperate weights (moves instantly)
testing underway!! :) :wink:
Hi,

Just to clarify, you shouldn't need the DroidFish fork to run these new builds. That was only needed when building the old way on Termux because the engine required some extra libs. That's not longer the case with any of the builds posted on the wiki, they should work with the regular chess gui's available on Google Play.

Regards,
Leandro
supersharp77
Posts: 1242
Joined: Sat Jul 05, 2014 7:54 am
Location: Southwest USA

Re: LC0 For Android!!! History Made!!

Post by supersharp77 »

lealgo wrote: Wed May 29, 2019 9:39 pm
supersharp77 wrote: Wed May 29, 2019 9:07 pm
Eduard wrote: Wed May 29, 2019 6:40 pm Great, "lc0 api16 32bit' works now under Android 5.1 32-bit!
New compiles Arm7 finally working in Droidfish (Modified APK for LC0) none of the arm7 compiles worked in any of the old versions of ChessForAndroid 5.6..5.9...6.15...engine would only load and work in the very latest version of Chessforandroid (May 28 2019 update) embedded weights version working less well than version with seperate weights (moves instantly)
testing underway!! :) :wink:
Hi,

Just to clarify, you shouldn't need the DroidFish fork to run these new builds. That was only needed when building the old way on Termux because the engine required some extra libs. That's not longer the case with any of the builds posted on the wiki, they should work with the regular chess gui's available on Google Play.

Regards,
Leandro
I ran the Termux BYO last night on my Tablet(2) and my android phone Arm7...spent a lot of time and lots of downloading and "Bells & Whistles" but no LC0 engine ever did appear in my Droidfish uci engines folder..You might want to rethink that one..."A total waste of time".... 8-) :|