Need help getting lc0 running with cutechess

336 views
Skip to first unread message

Felix Zaslavskiy

unread,
Oct 26, 2018, 11:21:20 AM10/26/18
to LCZero
I was trying to test playing lc0 against itself but when i tried to use the opencl version I was getting a Stalled engine.. refused to respond to ping on startup.

This command worked fine. The one with opencl was stalling out.
cutechess.exe -games 1 -engine cmd=lc0-v0.18.1-windows-blas\lc0.exe  -engine cmd=lc0-v0.18.1-windows-blas\lc0.exe -each proto=uci tc=30+5 arg="--weights=n16b6e505904aac83d965a35fb2367819d613dc73328d900129f4b43b6d986db60" dir=lc0-v0.18.1-windows-blas -debug -wait 200 -pgnout game.pgn

I noticed that first time OpenCL goes through some tunning which takes about 30 seconds and a tuning file is created. Since the tuning is not done on subsequent runs I don't understand why the engine times out on start. Any ideas?

Jupiter

unread,
Oct 26, 2018, 1:10:32 PM10/26/18
to LCZero
Try to run Lc0 opencl first.
execute and type 

uci
isready
go movetime 60000

Lets see if it will run.

Felix Zaslavskiy

unread,
Oct 27, 2018, 1:13:03 AM10/27/18
to LCZero
Your command works and I noticed there is like a 6 second delay after i type isready and before  readyok message shows. This delay seems to be related to the block20 network weights.
When I switched to 6 block network weights was able to get cutechess working with opencl on my computer.

When i run it with cutechess with block 20 network i get:
5521 >Lc0 v0.18.1(1): isready
Engine Lc0 v0.18.1(0) failed to respond to ping

cutechess seems to timeout after 5 seconds and if engine is not ready it fails to start game.

zz4032

unread,
Oct 27, 2018, 3:46:25 AM10/27/18
to LCZero
At least on Linux the path to the weights file needs to be complete (absolute).

Jupiter

unread,
Oct 27, 2018, 3:59:32 AM10/27/18
to LCZero
It seemed like cutechess had been revised to address this issue last June.


You can downloard the latest windows compile of gui and cli at http://talkchess.com/forum3/viewtopic.php?f=2&t=66430&p=776197&hilit=cutechess#p776197
Check if it solves the problem.

Felix Zaslavskiy

unread,
Oct 27, 2018, 5:29:14 PM10/27/18
to LCZero
That was helpful. Thanks 
Reply all
Reply to author
Forward
0 new messages