glinscott / leela-chess

**MOVED TO https://github.com/LeelaChessZero/leela-chess ** A chess adaption of GCP's Leela Zero
http://lczero.org
GNU General Public License v3.0
760 stars 301 forks source link

Unhandled exception: clGetPlatformIDs #724

Open batot1 opened 3 years ago

batot1 commented 3 years ago

Hello,

Im trying run Lc0 on Linux firsth time. Compiled and trying run and get something this:

$ ./lc0 
       _
|   _ | |
|_ |_ |_| v0.23.3+git.29c15a4 built Feb 11 2021
go nodes 100
Found pb network file: ./weight
Creating backend [opencl]...
OpenCL, maximum batch size set to 16.
Initializing OpenCL.
OpenCL: clGetPlatformIDs
Unhandled exception: clGetPlatformIDs
Aborted (core dumped)

Maybe sombady know what is it wrong?

installed opencl-headers (2:2020.12.18-1) $ uname -a Linux xxx 5.4.94-1-lts #1 SMP Sat, 30 Jan 2021 14:14:01 +0000 x86_64 GNU/Linux $ pacman -Q cuda cuda 11.2.0-3 $ lspci |grep -i vga 01:00.0 VGA compatible controller: NVIDIA Corporation GF119 [NVS 310] (rev a1) $ ls /etc/OpenCL/vendors nvidia.icd $ clinfo
Number of platforms 0

Maybe this help us:

$ sudo pacman -Ss opencl
extra/libclc 11.0.1-1
    Library requirements of the OpenCL C programming language
extra/ocl-icd 2.2.14-1 [installed]
    OpenCL ICD Bindings
extra/opencl-clhpp 2.0.13-1
    OpenCL C++ header files
extra/opencl-headers 2:2020.12.18-1 [installed]
    OpenCL (Open Computing Language) header files
extra/opencl-mesa 20.3.4-1
    OpenCL support for AMD/ATI Radeon mesa drivers
extra/opencl-nvidia 460.39-1
    OpenCL implemention for NVIDIA
community/clinfo 3.0.20.11.20-1
    Simple OpenCL application that enumerates all available platform and device properties
community/clpeak 1.1.0-1
    A tool which profiles OpenCL devices to find their peak capacities
community/erlang-cl 1.2.4-2
    OpenCL binding for Erlang
community/intel-compute-runtime 20.48.18558-1
    Intel(R) Graphics Compute Runtime for oneAPI Level Zero and OpenCL(TM) Driver
community/intel-graphics-compiler 1:1.0.5435-1
    Intel Graphics Compiler for OpenCL
community/intel-opencl-clang 11.0.0-1
    Wrapper library around clang that can compile OpenCL C kernels to SPIR-V modules
community/pocl 1.6-1
    Portable OpenCL is an open-source implementation of OpenCL which can be easily adapted for new targets
community/pyopencl-headers 1:2020.2.1-2
    A complete, object-oriented language binding of OpenCL to Python
community/python-pyopencl 1:2020.2.1-2
    A complete, object-oriented language binding of OpenCL to Python
multilib/lib32-ocl-icd 2.2.14-1 [installed]
    OpenCL ICD Bindings (32-bit)
multilib/lib32-opencl-mesa 20.3.4-1
    OpenCL support for AMD/ATI Radeon mesa drivers (32-bit)
multilib/lib32-opencl-nvidia 460.39-1
    OpenCL implemention for NVIDIA (32-bit)