Package Details: lc0-cudnn-git 0.28.2.r0.gfa5864bb-1

Git Clone URL: (read-only, click to copy)
Package Base: lc0-cudnn-git
Description: CudNN version of Leela Chess Zero.
Upstream URL:
Keywords: chess cudnn engine leela
Licenses: GPL3
Submitter: ghotrix
Maintainer: ghotrix
Last Packager: ghotrix
Votes: 4
Popularity: 0.000322
First Submitted: 2018-05-07 15:31 (UTC)
Last Updated: 2022-05-25 18:02 (UTC)

Dependencies (7)

Required by (1)

Sources (1)

Latest Comments

1 2 Next › Last »

ghotrix commented on 2021-12-12 09:46 (UTC)

I will look into it, thanks

cyqsimon commented on 2021-12-11 21:27 (UTC)

Can you perhaps consider adding a hook file, so that whenever cuda and cudnn are updated, lc0 gets rebuilt too? See

The reason I'm asking is that cuda runtime doesn't like it when the version used to build lc0 is different than the current version, so now I need to rebuild lc0 manually after updating cuda every so often. Ideally this process should be automated IMO.

ghotrix commented on 2019-08-07 10:47 (UTC)

It seems your cuda/cudnn packages are outdated. Run pls pacman -Syu in order to update your system and then install lc0 itself.

wast3 commented on 2019-06-20 14:16 (UTC)

Build fails with

The Meson build system
Version: 0.51.0
Source dir: /home/eric/.cache/pacaur/lc0-cudnn-git/src/lc0-cudnn
Build dir: /home/eric/.cache/pacaur/lc0-cudnn-git/src/lc0-cudnn/build/release
Build type: native build
DEPRECATION: Option uses prefix "build_", which is reserved for Meson. This will become an error in the future.
Project name: lc0
Project version: undefined
C++ compiler for the build machine: c++ (gcc 9.1.0 "c++ (GCC) 9.1.0")
C++ compiler for the host machine: c++ (gcc 9.1.0 "c++ (GCC) 9.1.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Library libprotobuf found: YES
Program protoc found: YES (/usr/bin/protoc)
Library pthread found: YES
Library dl found: YES
Library libtensorflow_cc found: YES
Found pkg-config: /usr/bin/pkg-config (1.6.1)
Found CMake: /usr/bin/cmake (3.14.5)
Run-time dependency accelerate found: NO (tried pkgconfig and cmake)
Library mkl_rt found: YES
Library openblas.dll found: NO
Library openblas found: YES
Library OpenCL found: YES
Run-time dependency opencl found: NO (tried pkgconfig and cmake)
Library cublas found: YES
Library cudnn found: YES
Library cudart found: YES
Program nvcc found: YES (/opt/cuda/bin/nvcc)
Dependency zlib found: YES (cached)
Dependency gtest found: YES (cached)
Build targets in project: 8
Found ninja-1.9.0 at /usr/bin/ninja
[3/26] Generating 'lc0@exe/common_kernels.o'.
FAILED: lc0@exe/common_kernels.o 
/opt/cuda/bin/nvcc -c ../../src/neural/cuda/ -o lc0@exe/common_kernels.o -I /home/eric/.cache/pacaur/lc0-cudnn-git/src/lc0-cudnn/src --std=c++14 -Xcompiler -fPIC -I /opt/cuda/include/ -I /usr/local/cuda/include/
/usr/include/c++/9.1.0/bits/stl_function.h(437): error: identifier "__builtin_is_constant_evaluated" is undefined

1 error detected in the compilation of "/tmp/tmpxft_00006df4_00000000-6_common_kernels.cpp1.ii".
[4/26] Generating 'lc0_lib@sha/common_kernels.o'.
FAILED: lc0_lib@sha/common_kernels.o 
/opt/cuda/bin/nvcc -c ../../src/neural/cuda/ -o lc0_lib@sha/common_kernels.o -I /home/eric/.cache/pacaur/lc0-cudnn-git/src/lc0-cudnn/src --std=c++14 -Xcompiler -fPIC -I /opt/cuda/include/ -I /usr/local/cuda/include/
/usr/include/c++/9.1.0/bits/stl_function.h(437): error: identifier "__builtin_is_constant_evaluated" is undefined

1 error detected in the compilation of "/tmp/tmpxft_00006dfd_00000000-6_common_kernels.cpp1.ii".
[5/26] Generating 'lc0@exe/fp16_kernels.o'.
FAILED: lc0@exe/fp16_kernels.o 
/opt/cuda/bin/nvcc -arch=compute_70 -code=sm_70 -c ../../src/neural/cuda/ -o lc0@exe/fp16_kernels.o -I /home/eric/.cache/pacaur/lc0-cudnn-git/src/lc0-cudnn/src --std=c++14 -Xcompiler -fPIC -I /opt/cuda/include/ -I /usr/local/cuda/include/
/usr/include/c++/9.1.0/bits/stl_function.h(437): error: identifier "__builtin_is_constant_evaluated" is undefined

1 error detected in the compilation of "/tmp/tmpxft_00006df5_00000000-6_fp16_kernels.cpp1.ii".
[6/26] Generating 'lc0_lib@sha/fp16_kernels.o'.
FAILED: lc0_lib@sha/fp16_kernels.o 
/opt/cuda/bin/nvcc -arch=compute_70 -code=sm_70 -c ../../src/neural/cuda/ -o lc0_lib@sha/fp16_kernels.o -I /home/eric/.cache/pacaur/lc0-cudnn-git/src/lc0-cudnn/src --std=c++14 -Xcompiler -fPIC -I /opt/cuda/include/ -I /usr/local/cuda/include/
/usr/include/c++/9.1.0/bits/stl_function.h(437): error: identifier "__builtin_is_constant_evaluated" is undefined

1 error detected in the compilation of "/tmp/tmpxft_00006dfe_00000000-6_fp16_kernels.cpp1.ii".
[17/26] Compiling C++ object 'lc0@exe/'.
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
:: failed to build lc0-cudnn-git package(s)

ghotrix commented on 2019-01-23 09:26 (UTC)

I suspect devs changed the way how protobuf lib is packaged (beforehand it compiled statically). I didn't catch it, because I have this lib installed as dependency of some other soft. Will add it as dependency immediately.

kureta commented on 2019-01-19 22:20 (UTC)

Output of ldd $(which lc0)

$ ldd $(which lc0) (0x00007fffee7ee000) => not found => not found => /usr/lib/ (0x00007f0e329ef000) => /opt/cuda/lib64/ (0x00007f0e2e459000) => /usr/lib/ (0x00007f0e19632000) => /opt/cuda/lib64/ (0x00007f0e193b8000) => /usr/lib/ (0x00007f0e1919f000) => /usr/lib/ (0x00007f0e19010000) => /usr/lib/ (0x00007f0e18e8b000) => /usr/lib/ (0x00007f0e18e71000) => /usr/lib/ (0x00007f0e18cad000)
    /lib64/ => /usr/lib64/ (0x00007f0e32c40000) => /usr/lib/ (0x00007f0e18ca3000) => /usr/lib/ (0x00007f0e18c9c000)

Output of pacman -Qs is empty.

ghotrix commented on 2019-01-19 22:08 (UTC)

somehow lc0 got linked against which, apparently, is nonexistent in your system can you post your output of ldd $(which lc0) and pacman -Qs protobuf?

kureta commented on 2019-01-19 19:37 (UTC)

I am getting this error:

lc0: error while loading shared libraries: cannot open shared object file: No such file or directory

I don't know where to start trying to fix this.

F1729 commented on 2018-12-13 17:35 (UTC)

Thank you! Your fix works for me.