LC0-Leela0 for Android Devices...?

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

Moderators: hgm, Rebel, chrisw

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

Re:Compiling LC0-Leela0 for Android Devices...?

Post by supersharp77 »

Re: LC0 for iPad?
Report this post Quote
Unread post by crem » Wed May 15, 2019 3:37 pm

It may be not that bad.

Someone is having a very good progress with making an Android version (https://github.com/LeelaChessZero/lc0/pull/848), and I expect that it's not that harder to do for iOS. Probably takes a dozen of hours of free time for a knowledgeable person.

Most probably it will be OpenCL version only though.

But noone is doing that right now.

https://github.com/LeelaChessZero/lc0/w ... ith-Termux

Enjoy!! :D :wink:
lealgo
Posts: 21
Joined: Fri Nov 18, 2016 12:08 am
Location: Cuba
Full name: Leandro Álvarez González

Re: LC0-Leela0 for Android Devices...?

Post by lealgo »

Hi,

Now it's easier to test the Android builds on DroidFish, no need to compile. Check this out:

https://github.com/LeelaChessZero/lc0/w ... -chess-GUI

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

Re: LC0-Leela0 for Android Devices...?

Post by supersharp77 »

lealgo wrote: Thu May 23, 2019 8:21 pm Hi,

Now it's easier to test the Android builds on DroidFish, no need to compile. Check this out:

https://github.com/LeelaChessZero/lc0/w ... -chess-GUI

Regards,
Leandro
Thank You My Friend..Its A Great Great Day.... LC0 for Android :D :wink:

Get lc0 for Android

Android builds are not official yet, but there are some that you could try. First lookup the architecture of your Android device and if it's 32 bits, choose this first build:

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

If your device supports 64 bits then choose this one:

https://github.com/LeelaChessZero/lc0/f ... arch64.zip

If you want to read more information about the above builds, browse this PR: https://github.com/LeelaChessZero/lc0/pull/848
lealgo
Posts: 21
Joined: Fri Nov 18, 2016 12:08 am
Location: Cuba
Full name: Leandro Álvarez González

Re: LC0-Leela0 for Android Devices...?

Post by lealgo »

Hi,

You're welcome! And thanks for spreading the word. Note that there's now a new section on the wiki with a small table containing the links to all the test builds that's been posted, for different platforms and back-ends:

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

Regards,
Leandro
User avatar
abik
Posts: 819
Joined: Fri Dec 01, 2006 10:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik

Re: LC0-Leela0 for Android Devices...?

Post by abik »

lealgo wrote: Fri May 24, 2019 11:10 pmYou're welcome! And thanks for spreading the word.
Thank you for making the Android version available! Much appreciated.
supersharp77
Posts: 1242
Joined: Sat Jul 05, 2014 7:54 am
Location: Southwest USA

Re: LC0-Leela0 for Android Devices...?

Post by supersharp77 »

abik wrote: Fri May 24, 2019 11:25 pm
lealgo wrote: Fri May 24, 2019 11:10 pmYou're welcome! And thanks for spreading the word.
Thank you for making the Android version available! Much appreciated.
Hello Art...Do we know if the LC0 weights file will work properly in Chess For Android? Let us know

Also Art..A swiss system format in Chess for android would expedite some engine tests..(one year backlog) RR testing with 40-50-60 engines takes 'forever' 6,000 -10,000 games....Thx AR
User avatar
abik
Posts: 819
Joined: Fri Dec 01, 2006 10:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik

Re: LC0-Leela0 for Android Devices...?

Post by abik »

supersharp77 wrote: Sat May 25, 2019 1:50 am Hello Art...Do we know if the LC0 weights file will work properly in Chess For Android? Let us know
Yes. The trick is to use "install engine from SD card" on the weights file as well (a bit non-intuitive, perhaps, but this puts the file in the same place as the engine binary, which then works). Of course, supporting a full UCI options setup dialog is the right way going forward. In modern days, the few options that I selected 10 years back just won't do anymore..... :-)
User avatar
PeterO
Posts: 215
Joined: Sun Jul 31, 2016 6:35 pm

Re: LC0-Leela0 for Android Devices...?

Post by PeterO »

Hi Aart,

1. Question: „supporting a full UCI options setup dialog“ - Is this the next „big thing“ you plan for CfA?
2. Question: Is it possible to preinstall LCO for CfA with the next update?

Peter
lealgo
Posts: 21
Joined: Fri Nov 18, 2016 12:08 am
Location: Cuba
Full name: Leandro Álvarez González

Re: LC0-Leela0 for Android Devices...?

Post by lealgo »

abik wrote: Sat May 25, 2019 5:07 am
supersharp77 wrote: Sat May 25, 2019 1:50 am Hello Art...Do we know if the LC0 weights file will work properly in Chess For Android? Let us know
Yes. The trick is to use "install engine from SD card" on the weights file as well (a bit non-intuitive, perhaps, but this puts the file in the same place as the engine binary, which then works). Of course, supporting a full UCI options setup dialog is the right way going forward. In modern days, the few options that I selected 10 years back just won't do anymore..... :-)
Hi,

I realized that it would be better to install the config file instead of the weights file. That way you could have the weights file located anywhere but also it allows you to configure the other parameters. From the reference:
-c, --config=STRING
Path to a configuration file. The format of the file is one command line
parameter per line, e.g.:
--weights=/path/to/weights
[UCI: ConfigFile DEFAULT: lc0.config]
I've tried with the default name and it works in Chess for Android. For the BLAS back-end I recommend --threads=8 and --max-prefetch=0

Regards,
Leandro
User avatar
abik
Posts: 819
Joined: Fri Dec 01, 2006 10:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik

Re: LC0-Leela0 for Android Devices...?

Post by abik »

PeterO wrote: Sat May 25, 2019 10:21 am Hi Aart,
1. Question: „supporting a full UCI options setup dialog“ - Is this the next „big thing“ you plan for CfA?
2. Question: Is it possible to preinstall LCO for CfA with the next update?
Peter
Hi Peter!
1. Absolutely! I started the work on a general widget builder yesterday late at night already. I expect I can release this really soon.
2. I am not a fun of bundling like this. Wouldn't it make more sense to release LC0 in Android open exchange format (OEX), so all GUIs can benefit, and new releases can be done independently of GUI updates?
Aart