On a Pixel C with default 2 threads, and 48x5 weights, about 600 nps.
LC0 For Android!!! History Made!!
Moderators: hgm, Rebel, chrisw
-
- Posts: 819
- Joined: Fri Dec 01, 2006 10:46 pm
- Location: Mountain View, CA, USA
- Full name: Aart Bik
-
- Posts: 1242
- Joined: Sat Jul 05, 2014 7:54 am
- Location: Southwest USA
Re: LC0 For Android!!! History Made!!
New Compile with weights built in.....unfortunately Arm7 compile crashed in Chess for android (engine exit)
New: There are two special test builds for those who couldn't or wouldn't fiddle with UCI Options and full paths, or maybe those using a GUI without that capability. These builds contain a small 48x5 weights file embedded into the engine itself. You'll still be able to use other weights with them, but the embedded weights will load when you didn't specify one. Get them here:
32 bits:
https://github.com/LeelaChessZero/lc0/f ... a-48x5.zip
64 bits:
https://github.com/LeelaChessZero/lc0/f ... 4-48x5.zip
New: There are two special test builds for those who couldn't or wouldn't fiddle with UCI Options and full paths, or maybe those using a GUI without that capability. These builds contain a small 48x5 weights file embedded into the engine itself. You'll still be able to use other weights with them, but the embedded weights will load when you didn't specify one. Get them here:
32 bits:
https://github.com/LeelaChessZero/lc0/f ... a-48x5.zip
64 bits:
https://github.com/LeelaChessZero/lc0/f ... 4-48x5.zip
-
- Posts: 1439
- Joined: Sat Oct 27, 2018 12:58 am
- Location: Germany
- Full name: N.N.
Re: LC0 For Android!!! History Made!!
Great, thanks!
-
- Posts: 819
- Joined: Fri Dec 01, 2006 10:46 pm
- Location: Mountain View, CA, USA
- Full name: Aart Bik
Re: LC0 For Android!!! History Made!!
Nice to have them embedded (although for Chess for Android in particular, the new options setup is now available).supersharp77 wrote: ↑Tue May 28, 2019 10:54 pmNew: There are two special test builds for those who couldn't or wouldn't fiddle with UCI Options and full paths, or maybe those using a GUI without that capability. These builds contain a small 48x5 weights file embedded into the engine itself. You'll still be able to use other weights with them, but the embedded weights will load when you didn't specify one.
I tried both the armv7 and aarch64, and both binaries run just fine in Chess for Android, no engine exit....
-
- Posts: 21
- Joined: Fri Nov 18, 2016 12:08 am
- Location: Cuba
- Full name: Leandro Álvarez González
Re: LC0 For Android!!! History Made!!
Hi,supersharp77 wrote: ↑Tue May 28, 2019 10:54 pm .....unfortunately Arm7 compile crashed in Chess for android (engine exit)
May I ask which Android version you're running on that device? I've added a note on the wiki about the current builds:
Also, could you try this build:The current builds are compiled using the latest Android NDK targeting the API Level 28 (equivalent to Android 9 Pie). But they're tested and run on Android 8 & 9. So older Android versions may not work. The plan is to build them for API Level 21 (Android 5.0 Lollipop and up) so they support a wider range of devices.
https://github.com/LeelaChessZero/lc0/f ... roid24.zip
Regards,
Leandro
-
- Posts: 25
- Joined: Fri Jul 06, 2018 1:14 am
- Full name: Aleksei
Re: LC0 For Android!!! History Made!!
Hi Leandro! The problem is not with the weights, but with the engine. For arm7 engines, the API level should be lowered to API 16! I always use api 16 for arm7 engines, and they all working fine. Eg for arm7 & arm8 (using NDK's toolchain).
Code: Select all
rem make_standalone_toolchain.py --arch arm --api 16 --install-dir d:\android-standalone-32
rem make_standalone_toolchain.py --arch arm64 --api 24 --install-dir d:\android-standalone-64
My device
-
- Posts: 21
- Joined: Fri Nov 18, 2016 12:08 am
- Location: Cuba
- Full name: Leandro Álvarez González
Re: LC0 For Android!!! History Made!!
Hi Aleksei,
I'll try lowering the API level. I might also try using an older NDK, as the latest one appears to have issues when targeting lower API levels.
Did you try loading the engine with DroidFish too?
Thank you for your report & hints.
Regards,
Leandro
-
- Posts: 1242
- Joined: Sat Jul 05, 2014 7:54 am
- Location: Southwest USA
Re: LC0 For Android!!! History Made!!
Here are my tablet specs....lealgo wrote: ↑Wed May 29, 2019 12:17 amHi,supersharp77 wrote: ↑Tue May 28, 2019 10:54 pm .....unfortunately Arm7 compile crashed in Chess for android (engine exit)
May I ask which Android version you're running on that device? I've added a note on the wiki about the current builds:
Also, could you try this build:The current builds are compiled using the latest Android NDK targeting the API Level 28 (equivalent to Android 9 Pie). But they're tested and run on Android 8 & 9. So older Android versions may not work. The plan is to build them for API Level 21 (Android 5.0 Lollipop and up) so they support a wider range of devices.
https://github.com/LeelaChessZero/lc0/f ... roid24.zip
Regards,
Leandro
Huawei Tablet BG2 Marshmallow 6.0 SDK 23 ART2.1.0 4cores armeabi-v7a,armeabi kernel v 3.18.22+
598 mhz-1300 mhz
-
- Posts: 25
- Joined: Fri Jul 06, 2018 1:14 am
- Full name: Aleksei
Re: LC0 For Android!!! History Made!!
Hi Leandro!
NDK r19 stable version is working fine, i've tried r20 beta versions they working too, but the engines become little bit slower (which is weird).. Regarding Droidfish - same story, engine not working at all.
-
- Posts: 267
- Joined: Fri Mar 17, 2006 8:01 am
- Location: Russia
- Full name: Vladimir Medvedev
Re: LC0 For Android!!! History Made!!
It would be really nice to have something like go playing Leela: https://play.google.com/store/apps/deta ... android.aq
When you install application from the Market and it just works - all work with weights being handled in internal dialogs/settings of the program.
When you install application from the Market and it just works - all work with weights being handled in internal dialogs/settings of the program.