AMDGPU RX580 OpenCL

Greg V greg at unrelenting.technology
Wed Jan 2 11:14:27 UTC 2019



On Wed, Jan 2, 2019 at 3:35 AM, Tomasz CEDRO <tomek at cedro.info> wrote:
> Hello world in 2019 :-)
> 
> I have recently upgraded 11.2 to 12.0. I made AMDGPU work as my
> desktop Xorg driver. However I still did not make it work with
> OpenCL.. I have some error messages about kernel code missing.. and I
> get the Segmentation Faults at some point in clinfo.. do I miss
> anything?
> 
> Did anyone make OpenCL+AMDGPU+RX580 work?

Yes, you need two things:

- you might have to run OpenCL applications with 
LD_PRELOAD=/lib/libthr.so.3 (when they're single thread applications 
like clinfo) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214204
- you have to rebuild the kernel driver with this patch 
https://github.com/FreeBSDDesktop/kms-drm/issues/33#issuecomment-422793245

keep in mind that Clover is not very good. It can't yet handle Blender, 
doesn't have image support for Darktable, etc.



More information about the freebsd-questions mailing list