Installing lc0 in arch linux nvidia GPU

385 views
Skip to first unread message

Nicolas G

unread,
Jan 10, 2019, 12:41:37 PM1/10/19
to LCZero
Maybe this is not the place to post this but I didn know where else to ask. Iḿ trying to install lc0 in my arch-linux laptop with a Nvidia GTX 760M GPU but it's not working. I read the 'Building and running Lc0' section in git and I did the following steps:

clone lc0
> git clone -b release/0.20 --recurse-submodules https://github.com/LeelaChessZero/lc0.git
make sure the needed packages are install
> pacman (-Q)-S nvidia opencl-nvidia cuda
> pacman (-Q)-S cudnn ninja meson gtest
in the lc0/ run
> ./build.sh
I notice this package in the AUR so I installed
> yay -S lc0-cudnn-git
Add the followin lines to the bashrc
export CUDA="/opt/cuda/include"
export PATH="${PATH}:$PATH"
export PATH=/opt/cuda/bin${PATH:+:${PATH}}

Then I added to scid but still is not woriking, did I miss something? or did I made a mistake? Can someone give me a piece of advice?


Thanks!

Dietrich Kappe

unread,
Jan 10, 2019, 1:31:46 PM1/10/19
to LCZero
When you say “not working”, you’ll have to be a little bit more specific. Can you run lc0 from the commandline without SCID?

Nicolas G

unread,
Jan 10, 2019, 11:03:37 PM1/10/19
to LCZero
I tried in terminal
> ./lc0 selfplay

With the output:
_
| _ | |
|_ |_ |_| v0.20.1-rc1 built Jan 5 2019
id name Lc0 v0.20.1-rc1
id author The LCZero Authors.
terminate called after throwing an instance of 'lczero::Exception'
what(): Network weights file not found.
Abortado (`core' generado)

Philip Stephens

unread,
Jan 11, 2019, 2:16:32 AM1/11/19
to LCZero
All you need to do is right click on a network from https://lczero.org/networks/ and save as ==> weights or weights.txt <== in the lc0 directory. 
Then it should work and you can load it into Arena, Cutechess, or use it with the client program to train the network.

Philip

Nicolas G

unread,
Jan 11, 2019, 9:18:21 AM1/11/19
to LCZero
Thank you so much Philip, now is working perfectly!
Reply all
Reply to author
Forward
0 new messages