lu01 发表于 2019-5-4 07:29

有人编译成功了能用android gpu的leelaz

有小米9的可以测试
https://github.com/leela-zero/leela-zero/issues/2366

https://github.com/Grant-Tao/compiled-leelaz-0.17-for-android-phones

阿扬 发表于 2019-5-4 10:16

手机吃得消吗

liangr 发表于 2019-5-4 10:51

这,有谁试用吗?GPU版里拉,想想都美死了:lol:lol:lol

ssxxyy 发表于 2019-5-4 12:17

要等新手机了

lu01 发表于 2019-5-4 15:52

作者说荣耀v10用gpu的速度只有不用的一半

sxy 发表于 2019-5-4 21:01

lu01 发表于 2019-5-4 15:52
作者说荣耀v10用gpu的速度只有不用的一半

那还有什么意义呢?!

lu01 发表于 2019-5-5 13:31

作者又编译了高通骁龙660版本

lu01 发表于 2019-5-5 15:38

作者又编译了高通骁龙820版本

sxy 发表于 2019-5-6 01:03

希望GPU能比CPU利害才是

lu01 发表于 2019-5-19 18:30

/ $
/ $ export PATH=/busybox-virtual:/data/user/0/com.n0n3m4.droida/files/:bin:debugger:aarch64-linux-android/bin/:$PATH
/ $ export HOME=/data/user/0/com.n0n3m4.droida/files/
/ $ export LD_LIBRARY_PATH=lib64
/ $ export CFLAGS="-Os -s -pie"
/ $ export CXXFLAGS="-Os -s -pie"
/ $ export SHELL="/data/user/0/com.n0n3m4.droida/files/sh"
/ $ export CONFIG_SHELL="sh"
/ $ export PKG_CONFIG_PATH=aarch64-linux-android/lib/pkgconfig
/ $ cd "/storage/emulated/0"
/storage/emulated/0 $ cd Dow*
/storage/emulated/0/Download $ ls
browser       com.jd.jrapp
/storage/emulated/0/Download $ ls -l
total 7
drwxrwx---    4 0      9997          3488 May 19 10:05 browser
drwxrwx---    3 0      9997          3488 Jan 18 14:08 com.jd.jrapp
/storage/emulated/0/Download $ cd bro*
/storage/emulated/0/Download/browser $ ls
plugins??
/storage/emulated/0/Download/browser $ cd ..
/storage/emulated/0/Download $
/storage/emulated/0/Download $
/storage/emulated/0/Download $ ls
browser       com.jd.jrappleelaz_970    lz22415b.zip
/storage/emulated/0/Download $ mv *zip 15.gz
/storage/emulated/0/Download $ ./leelaz_970 15.gz
WARNING: linker: Warning: unable to normalize "lib64" (ignoring)
Unrecognized argument: 15.gz
Leela Zero 0.17Copyright (C) 2017-2019Gian-Carlo Pascutto and contributors
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see the COPYING file for details.


Generic options:
-h [ --help ]                         Show commandline options.
-g [ --gtp ]                        Enable GTP mode.
-t [ --threads ] arg (=0)             Number of threads to use. Select 0 to
                                        let leela-zero pick a reasonable
                                        default.
-p [ --playouts ] arg               Weaken engine by limiting the number of
                                        playouts. Requires --noponder.
-v [ --visits ] arg                   Weaken engine by limiting the number of
                                        visits.
-b [ --lagbuffer ] arg (=100)         Safety margin for time usage in
                                        centiseconds.
-r [ --resignpct ] arg (=-1)          Resign when winrate is less than x%.
                                        -1 uses 10% but scales for handicap.
-w [ --weights ] arg (=/storage/emulated/0/Download/best-network)
                                        File with network weights.
-l [ --logfile ] arg                  File to log input/output to.
-q [ --quiet ]                        Disable all diagnostic output.
--timemanage arg (=auto)             Enable
                                        time management features.
                                        auto = no_pruning when using -n,
                                        otherwise on.
                                        on = Cut off search when the best move
                                        can't change, but use full time if
                                        moving faster doesn't save time.
                                        fast = Same as on but always plays
                                        faster.
                                        no_pruning = For self play training
                                        use.

--noponder                            Disable thinking on opponent's time.
--benchmark                           Test network and exit. Default args:
                                        -v3200 --noponder -m0 -t1 -s1.
--cpu-only                            Use CPU-only implementation and do not
                                        use OpenCL device(s).

OpenCL device options:
--gpu arg                           ID of the OpenCL device(s) to use
                                        (disables autodetection).
--full-tuner                        Try harder to find an optimal OpenCL
                                        tuning.
--tune-only                           Tune OpenCL only and then exit.
--batchsize arg (=0)                  Max batch size.Select 0 to let
                                        leela-zero pick a reasonable default.
--precision arg                     Floating-point precision
                                        (single/half/auto).
                                        Default is to auto which automatically
                                        determines which one to use.

Self-play options:
-n [ --noise ]                        Enable policy network randomization.
-s [ --seed ] arg                     Random number generation seed.
-d [ --dumbpass ]                     Don't use heuristics for smarter
                                        passing.
-m [ --randomcnt ] arg (=0)         Play more randomly the first x moves.
--randomvisits arg (=1)               Don't play random moves if they have <=
                                        x visits.
--randomtemp arg (=1)               Temperature to use for random move
                                        selection.

/storage/emulated/0/Download $ mv leel* lz9
/storage/emulated/0/Download $ ./lz9 -w 15.gz
WARNING: linker: Warning: unable to normalize "lib64" (ignoring)
Using OpenCL batch size of 5
Using 10 thread(s).
RNG seed: 2896355837598357390
Leela Zero 0.17Copyright (C) 2017-2019Gian-Carlo Pascutto and contributors
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see the COPYING file for details.

BLAS Core: ARMV8
Detecting residual layers...v1...192 channels...15 blocks.
Initializing OpenCL (autodetecting precision).
Detected 1 OpenCL platforms.
Platform version: OpenCL 2.0 v1.r14p0-00cet0.7cff926dd83c7c8d932e683f71212050
Platform profile: FULL_PROFILE
Platform name:    ARM Platform
Platform vendor:ARM
Device ID:   0
Device name:   Mali-G72
Device type:   GPU
Device vendor: ARM
Device driver: 2.0
Device speed:5 MHz
Device cores:12 CU
Device score:120
Selected platform: ARM Platform
Selected device: Mali-G72
with OpenCL 2.0 capability.
Half precision compute support: Yes.
Tensor Core support: Yes.
OpenCL: using fp16/half or tensor core compute support.

Started OpenCL SGEMM tuner.
Will try 380 valid configurations.
(1/380) KWG=32 KWI=8 MDIMA=8 MDIMC=8 MWG=64 NDIMB=16 NDIMC=16 NWG=64 SA=1 SB=1 STRM=0 STRN=0 TCE=0 VWM=2 VWN=2 8.5290 ms (38.9 GFLOPS)
Segmentation fault
/storage/emulated/0/Download $ ./lz9 --cpu-only -w 15.gz
WARNING: linker: Warning: unable to normalize "lib64" (ignoring)
Using 8 thread(s).
RNG seed: 4131794806963749699
Leela Zero 0.17Copyright (C) 2017-2019Gian-Carlo Pascutto and contributors
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see the COPYING file for details.

BLAS Core: ARMV8
Detecting residual layers...v1...192 channels...15 blocks.
Initializing CPU-only evaluation.
Setting max tree size to 4248 MiB and cache size to 472 MiB.
Passes: 0            Black (X) Prisoners: 0
Black (X) to move    White (O) Prisoners: 0

   a b c d e f g h j k l m n o p q r s t
19 . . . . . . . . . . . . . . . . . . . 19
18 . . . . . . . . . . . . . . . . . . . 18
17 . . . . . . . . . . . . . . . . . . . 17
16 . . . + . . . . . + . . . . . + . . . 16
15 . . . . . . . . . . . . . . . . . . . 15
14 . . . . . . . . . . . . . . . . . . . 14
13 . . . . . . . . . . . . . . . . . . . 13
12 . . . . . . . . . . . . . . . . . . . 12
11 . . . . . . . . . . . . . . . . . . . 11
10 . . . + . . . . . + . . . . . + . . . 10
9 . . . . . . . . . . . . . . . . . . .9
8 . . . . . . . . . . . . . . . . . . .8
7 . . . . . . . . . . . . . . . . . . .7
6 . . . . . . . . . . . . . . . . . . .6
5 . . . . . . . . . . . . . . . . . . .5
4 . . . + . . . . . + . . . . . + . . .4
3 . . . . . . . . . . . . . . . . . . .3
2 . . . . . . . . . . . . . . . . . . .2
1 . . . . . . . . . . . . . . . . . . .1
   a b c d e f g h j k l m n o p q r s t

Hash: 9A930BE1616C538E Ko-Hash: A14C933E7669946D

Black time: 00:15:00
White time: 00:15:00

Leela: netbench
1600 evaluations in 174.40 seconds -> 9 n/s
=


Passes: 0            Black (X) Prisoners: 0
Black (X) to move    White (O) Prisoners: 0

   a b c d e f g h j k l m n o p q r s t
19 . . . . . . . . . . . . . . . . . . . 19
18 . . . . . . . . . . . . . . . . . . . 18
17 . . . . . . . . . . . . . . . . . . . 17
16 . . . + . . . . . + . . . . . + . . . 16
15 . . . . . . . . . . . . . . . . . . . 15
14 . . . . . . . . . . . . . . . . . . . 14
13 . . . . . . . . . . . . . . . . . . . 13
12 . . . . . . . . . . . . . . . . . . . 12
11 . . . . . . . . . . . . . . . . . . . 11
10 . . . + . . . . . + . . . . . + . . . 10
9 . . . . . . . . . . . . . . . . . . .9
8 . . . . . . . . . . . . . . . . . . .8
7 . . . . . . . . . . . . . . . . . . .7
6 . . . . . . . . . . . . . . . . . . .6
5 . . . . . . . . . . . . . . . . . . .5
4 . . . + . . . . . + . . . . . + . . .4
3 . . . . . . . . . . . . . . . . . . .3
2 . . . . . . . . . . . . . . . . . . .2
1 . . . . . . . . . . . . . . . . . . .1
   a b c d e f g h j k l m n o p q r s t

Hash: 9A930BE1616C538E Ko-Hash: A14C933E7669946D

Black time: 00:15:00
White time: 00:15:00

Leela:
页: [1]
查看完整版本: 有人编译成功了能用android gpu的leelaz