LC0 For Android!!! History Made!!

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
Eduard
Posts: 224
Joined: Fri Oct 26, 2018 10:58 pm
Location: Germany
Full name: Eduard Nemeth
Contact:

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

Post by Eduard » Wed May 29, 2019 9: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!

lealgo
Posts: 17
Joined: Thu Nov 17, 2016 11:08 pm
Location: Cuba
Full name: Leandro Álvarez González

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

Post by lealgo » Wed May 29, 2019 2:59 pm

Eduard wrote:
Wed May 29, 2019 9: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

User avatar
Eduard
Posts: 224
Joined: Fri Oct 26, 2018 10:58 pm
Location: Germany
Full name: Eduard Nemeth
Contact:

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

Post by Eduard » Wed May 29, 2019 3:42 pm

Thanks! I will testing and hope it works.

supersharp77
Posts: 764
Joined: Sat Jul 05, 2014 5:54 am
Location: Southwest USA

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

Post by supersharp77 » Wed May 29, 2019 4:18 pm

lealgo wrote:
Wed May 29, 2019 2:59 pm
Eduard wrote:
Wed May 29, 2019 9: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

User avatar
Eduard
Posts: 224
Joined: Fri Oct 26, 2018 10:58 pm
Location: Germany
Full name: Eduard Nemeth
Contact:

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

Post by Eduard » Wed May 29, 2019 4:40 pm

Great, "lc0 api16 32bit' works now under Android 5.1 32-bit!

Aleksei
Posts: 12
Joined: Thu Jul 05, 2018 11:14 pm
Full name: Aleksei

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

Post by Aleksei » Wed May 29, 2019 5: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:
Image

lealgo
Posts: 17
Joined: Thu Nov 17, 2016 11:08 pm
Location: Cuba
Full name: Leandro Álvarez González

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

Post by lealgo » Wed May 29, 2019 5:56 pm

Aleksei wrote:
Wed May 29, 2019 5: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: 764
Joined: Sat Jul 05, 2014 5:54 am
Location: Southwest USA

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

Post by supersharp77 » Wed May 29, 2019 7:07 pm

Eduard wrote:
Wed May 29, 2019 4: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: 17
Joined: Thu Nov 17, 2016 11:08 pm
Location: Cuba
Full name: Leandro Álvarez González

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

Post by lealgo » Wed May 29, 2019 7:39 pm

supersharp77 wrote:
Wed May 29, 2019 7:07 pm
Eduard wrote:
Wed May 29, 2019 4: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: 764
Joined: Sat Jul 05, 2014 5:54 am
Location: Southwest USA

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

Post by supersharp77 » Wed May 29, 2019 7:48 pm

lealgo wrote:
Wed May 29, 2019 7:39 pm
supersharp77 wrote:
Wed May 29, 2019 7:07 pm
Eduard wrote:
Wed May 29, 2019 4: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-) :|

Post Reply