Just some notes for myself and in case someone else wants to give the approach a try.
- I did not get OpenCL to work with the Linuxlator ubuntu 18.04.5 LTS + 5700 XT + AMD OpenCL libs (yet). The results are the same as show already above. The 5700 XT is not seen by clinfo.
- I attached a strace log I took from inside the ubuntu chroot. I'm not understanding what is going on there in detail ( maybe someone else can see what is wrong ?) but checking it against the hints from
https://github.com/bashbaug/OpenCLP...inux.asciidoc#troubleshooting-opencl-on-linux it seems things are actual setup "OK"
- Finding a Ubuntu version + a version of AMD OpenCL libs which actually work together seems crucial.
- The only combination which worked for me on an actual Ubuntu installation was Ubuntu 18.04.5 HWE + AMD amdgpu-pro-20.40-1147287-ubuntu-18.04.tar.xz . With this the 5700 XT + Ryzen CPU are recognized by clinfo, blender, darktable as OpenCL devices.
- Hints about the OS + AMD OpenCL version:
https://devtalk.blender.org/t/guide-install-amd-opencl-on-pop-os-ubuntu-some-derivates/13458
- like
shkhln said, its enough to extract the libs and the icd files
- the icd files you need are:
Code:
-rw-r--r-- 1 user user 20B Feb 2 22:26 amdocl-orca64.icd
-rw-r--r-- 1 user user 15B Feb 2 22:26 amdocl64.icd
- the libs you need are:
Code:
lrwxr-xr-x 1 user user 21B Feb 2 22:26 libamd_comgr.so -> libamd_comgr.so.1.7.0
lrwxr-xr-x 1 user user 21B Feb 2 22:26 libamd_comgr.so.1 -> libamd_comgr.so.1.7.0
-rw-r--r-- 1 user user 104M Feb 2 22:26 libamd_comgr.so.1.7.0
-rw-r--r-- 1 user user 81M Feb 2 22:26 libamdocl-orca64.so
-rw-r--r-- 1 user user 35M Feb 2 22:26 libamdocl12cl64.so
-rw-r--r-- 1 user user 90M Feb 2 22:26 libamdocl64.so
lrwxr-xr-x 1 user user 16B Feb 2 22:26 libOpenCL.so.1 -> libOpenCL.so.1.2
-rw-r--r-- 1 user user 30K Feb 2 22:26 libOpenCL.so.1.2
- I replicated the setup as good as I could on FreeBSD (13-Alpha3) like so:
- setup Ubuntu BIONIC Linuxlator according to
https://wiki.freebsd.org/LinuxJails
- NOTE: this only gives you Ubuntu version 18.4 LTS. To get 18.04.5 I had to add the following to /compat/ubuntu/etc/apt/sources.list ( run apt update/upgrade. Check OS version e.g. with lsb_release -a)
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
- The upgrade is important. Otherwise the mesa version is too old to recognize the 5700 XT and second it would not match the Ubuntu version I used for testing.
- I also tested to upgrade just mesa to latest but seems to make no difference either.