[Pkg-opencl-devel] Bug#976295: ocl-icd-libopencl1: add docs for AMD proprietary OpenCL library, since mesa's doesn't work

Ximin Luo infinity0 at debian.org
Wed Dec 2 23:52:05 GMT 2020


Ximin Luo:
> [..]
> 
> 4. Finally run clinfo(1) with the right LD_LIBRARY_PATH to check that it worked.
>    You should get something like:
> 
>    ~~~~
>    $ LD_LIBRARY_PATH=/opt/amdgpu-pro/lib/x86_64-linux-gnu/ clinfo -l
>    Platform #0: AMD Accelerated Parallel Processing
>     `-- Device #0: Ellesmere
>    Platform #1: Clover
>     `-- Device #0: Radeon RX 580 Series (POLARIS10, DRM 3.39.0, 5.9.0-4-amd64, LLVM 11.0.0)
>    ~~~~
> 
>    Clover being what is output by mesa-opencl-icd, unfortunately it doesn't work
>    e.g. leela-zero runs into errors with it.
> 
> 5. To avoid needing LD_LIBRARY_PATH, edit /etc/OpenCL/vendors/amdocl*.icd to
>    instead contain the full path to the particular library.
> 

Actually, at least for the latest versions of these packages, I noticed that LD_LIBRARY_PATH is no longer necessary, they install config files into /etc/ld.so.conf.d/ that automatically adds them to the path. This is more reliable in the long run that the full-path solution, because the full-paths include version numbers that might change after an update.

Also, you probably want to remind the user in step (3) to delete that sources.list.d entry afterwards, otherwise any local user that can write to the path, can inject extra packages into the apt cache.

Ximin

-- 
GPG: ed25519/56034877E1F87C35
https://github.com/infinity0/pubkeys.git



More information about the Pkg-opencl-devel mailing list