How to get OpenCL working with amdgpu?

Hi there,

I am trying to get opencl working with my amd gpus.

clinfo 
Number of platforms                               0

darktable-cltest 
[defaults] found a 64-bit system with 65716920 kb ram and 64 cores (0 atom based)
[defaults] setting very high quality defaults
0.026244 [opencl_init] opencl related configuration options:
0.026261 [opencl_init] 
0.026264 [opencl_init] opencl: 1
0.026267 [opencl_init] opencl_scheduling_profile: 'default'
0.026276 [opencl_init] opencl_library: ''
0.026284 [opencl_init] opencl_memory_requirement: 768
0.026291 [opencl_init] opencl_memory_headroom: 400
0.026295 [opencl_init] opencl_device_priority: '*/!0,*/*/*/!0,*'
0.026302 [opencl_init] opencl_mandatory_timeout: 200
0.026304 [opencl_init] opencl_size_roundup: 16
0.026306 [opencl_init] opencl_async_pixelpipe: 0
0.026307 [opencl_init] opencl_synch_cache: active module
0.026310 [opencl_init] opencl_number_event_handles: 25
0.026315 [opencl_init] opencl_micro_nap: 1000
0.026317 [opencl_init] opencl_use_pinned_memory: 0
0.026319 [opencl_init] opencl_use_cpu_devices: 0
0.026320 [opencl_init] opencl_avoid_atomics: 0
0.026322 [opencl_init] 
0.026514 [opencl_init] found opencl runtime library 'libOpenCL'
0.026536 [opencl_init] opencl library 'libOpenCL' found on your system and loaded
0.028307 [opencl_init] could not get platforms: -1001
0.028315 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
0.028317 [opencl_init] initial status of opencl enabled flag is OFF.

Can someone please point me in the right direction?

https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#getting-the-rocm-source-code

You need to install ROCm platform. Clear Linux is not supported and you can try to build it from the source.

There’s no guarantee you would succeed and there’s no guides on how to do that in CL. If you have to use opencl, it’s easiest if you install a supported distro.

1 Like

Thanks for the link!

I don’t have to use OpenCL but I like the challenge of getting things working in CL.
I will post a script/repo if (when) it works.

1 Like

Hello, I am a new Clear Linux user. Were you finally able to install OpenCL drivers for your AMD GPU? I am trying to do the same. Will report on my progress, meanwhile, I would love to hear your experience. Tips and tricks are also appreciated. :smiley: