Le lundi 27 mars 2017 à 13:40 -0400, Šarūnas a écrit :
> Debian might be different, but here is what works for me on Kubuntu
> 16.10 with amdgpu + few amdgpu-pro libraries and RX-480.
> 
> Download AMDGPU-Pro for Ubuntu.
> (http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Driver-for
> -Linux-Release-Notes.aspx)
> 
> Unpack downloaded and then extract 3 packages:
> 
> dpkg -x opencl-amdgpu-pro-icd_16.60-379184_amd64.deb .
> dpkg -x libdrm-amdgpu-pro-amdgpu1_2.4.70-379184_amd64.deb .
> dpkg -x libopencl1-amdgpu-pro_16.60-379184_amd64.deb .
> 
> Copy:
> 
> etc/OpenCL/vendors/amdocl64.icd to /etc/OpenCL/vendors/amdocl64.icd
> 
> opt/amdgpu-pro/lib/x86_64-linux-gnu/ to
> /opt/amdgpu-pro/lib/x86_64-linux-gnu/.
> 
> Results in `tree /opt/amdgpu-pro/lib/x86_64-linux-gnu/`:
> /opt/amdgpu-pro/lib/x86_64-linux-gnu/
> ├── libamdocl12cl64.so
> ├── libamdocl64.so
> ├── libdrm_amdgpu.so.1 -> libdrm_amdgpu.so.1.0.0
> ├── libdrm_amdgpu.so.1.0.0
> ├── libOpenCL.so -> libOpenCL.so.1
> └── libOpenCL.so.1

This is very puzzling. I did just that again...

> 
> `LD_LIBRARY_PATH=/opt/amdgpu-pro/lib/x86_64-linux-gnu/ darktable-
> cltest`
> output is attached.

My output is:
   1. 
[opencl_init] opencl related configuration options:
[opencl_init] 
[opencl_init] opencl: 1
[opencl_init] opencl_library: ''
[opencl_init] opencl_memory_requirement: 512
[opencl_init] opencl_memory_headroom: 300
[opencl_init] opencl_device_priority: '*/!0,*/*/*'
[opencl_init] opencl_size_roundup: 16
[opencl_init] opencl_async_pixelpipe: 1
[opencl_init] opencl_synch_cache: 1
[opencl_init] opencl_number_event_handles: 100
[opencl_init] opencl_micro_nap: 0
[opencl_init] opencl_use_pinned_memory: 0
[opencl_init] opencl_use_cpu_devices: 0
[opencl_init] opencl_avoid_atomics: 0
[opencl_init] opencl_enable_markesteijn: 1
[opencl_init] 
[opencl_init] found opencl runtime library 'libOpenCL'
[opencl_init] opencl library 'libOpenCL' found on your system and loaded
[opencl_init] found 1 platform
[opencl_init] found 1 device
[opencl_init] discarding CPU device 0 `Intel(R) Core(TM) i7-6820HQ CPU @ 
2.70GHz'.
[opencl_init] no suitable devices found.
[opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
[opencl_init] initial status of opencl enabled flag is OFF.

Without LD_LIBRARY_PATH I have report that LibOpenCL is not found:
[opencl_init] could not find opencl runtime library 'libOpenCL'
[opencl_init] could not find opencl runtime library 'libOpenCL.so'
[opencl_init] could not find opencl runtime library 'libOpenCL.so.1'
[opencl_init] no working opencl library found. Continue with opencl disabled

So there is no other OpenCL installed.

> Other info:
> 
> kernel: 4.8.0-44-generic

4.9.0-2-amd64

> lspci -v
> 02:00.0 VGA compatible controller: Advanced Micro Devices, Inc.
> [AMD/ATI] Ellesmere [Radeon RX 470/480] (rev c7) (prog-if 00 [VGA
> controller])
>         Subsystem: XFX Pine Group Inc. Radeon RX 480
>         [...]
>         Kernel driver in use: amdgpu
>         Kernel modules: amdgpu

Mine is:

$ lspci -v
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus 
XTX [Radeon HD 8890M / R9 M275X/M375X] (rev 83) (prog-if 00 [VGA controller])
        Subsystem: Dell Venus XTX [Radeon HD 8890M / R9 M275X/M375X]
        Flags: bus master, fast devsel, latency 0, IRQ 142
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at dfe00000 (64-bit, non-prefetchable) [size=256K]
        I/O ports at e000 [size=256]
        Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: radeon
        Kernel modules: radeon

If you have an idea...

Thanks,

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to