飞扬围棋论坛

 找回密码
 注册
搜索
查看: 27701|回复: 25
打印 上一主题 下一主题

windows下各种显卡跑katago可以有个准确的性能总结吗

[复制链接]
1#
发表于 2021-8-4 23:41 | 显示全部楼层
kato引擎自带benchmark命令。
示例如下:

katago-opencl.exe benchmark -model ..\weights\katago-40b.bin.gz -config ..\config\katago.cfg
替换权重路径和配置文件路径。

支持多个参数,比如,测试多少v,用多少线程同时测试。示例:

katago-opencl.exe benchmark -model ..\weights\katago-40b.bin.gz -config ..\config\katago.cfg -t 1,4,8,16,24,32

同时测试1,4,8,16,24,32 线程。-t 指定测试的线程数。

默认测试10次平均,都可以修改,示例:

katago-opencl.exe benchmark -model ..\weights\katago-40b.bin.gz -config ..\config\katago.cfg -boardsize 19 -v 3200 -t 16 -n 5

测试19x19的棋盘。 -v 指测试3200v,-n 5,取五次平均。 -t 16 ,只测试16线程。

katago的benchmark 功能非常完整了,可自己看说明参考。

.\katago-opencl.exe benchmark -help

DESCRIPTION:

   Benchmark with gtp config to test speed with different numbers of
   threads.

USAGE:

   benchmark  [-config <FILE>] [-model <FILE>] [-v <VISITS>] [-t <THREADS>]
              [-n <NUM>] [...other flags...]


Where:

   -config <FILE>
     Config file to use (see gtp_example.cfg or configs/gtp_example.cfg).
     Defaults to: (dir containing katago.exe)/default_gtp.cfg

   -model <FILE>
     Neural net model file. Defaults to: (dir containing
     katago.exe)/default_model.bin.gz

   -v <VISITS>,  -visits <VISITS>
     How many visits to use per search (default 800)

   -t <THREADS>,  -threads <THREADS>
     Test these many threads, comma-separated, e.g. '4,8,12,16'

   -n <NUM>,  -numpositions <NUM>
     How many positions to sample from a game (default 10)

   -override-config <KEYVALUEPAIRS>  (accepted multiple times)
     Override config parameters. Format: "key=value, key=value,..."

   -sgf <FILE>
     Optional game to sample positions from (default: uses a built-in-set
     of positions)

   -boardsize <SIZE>
     Size of board to benchmark on (7-19), default 19

   -s,  -tune
     Automatically search for the optimal number of threads (default if not
     specifying specific numbers of threads)

   -i <SECONDS>,  -time <SECONDS>
     Typical amount of time per move spent while playing, in seconds
     (default 5)

   --,  -ignore_rest
     Ignores the rest of the labeled arguments following this flag.

   -version
     Displays version information and exits.

   -h,  -help
     Displays usage information and exits.

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|飞扬围棋网 ( 苏ICP备11029047号-1 )

GMT+8, 2024-5-5 02:16 , Processed in 0.129296 second(s), 18 queries .

since 2003飞扬围棋论坛 Licensed

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表