Page 1 of 1

Guide to using ROCm for AMD instead of Pro drivers on Debian

PostPosted: Fri Apr 10, 2020 9:53 pm
by braiam
There's a qualitative advantage of using the ROCm drivers rather than the AMDGPU(-PRO) packages. It has better support for newer cards, extremely modular (no more having to have vdpau and va drivers from the AMD drivers mixed with mesa) and it's developed with focus on computing. Another advantage is that it's easier to install on any system without messing around scripts. Just following the download instructions and installing both the rocm-opencl and rocm-opencl-dev packages is enough... in theory. You also have to edit the /etc/ld.so.conf.d/hsa-rocr-dev.conf file so it reads as follow (note the version of the rocm directory can change):

Code: Select all
/opt/rocm-3.3.0/opencl/lib/
/opt/rocm/hsa/lib


ldconfig can't realiably read from the x86_64 directory, which would make programs unable to find the library. Running ldconfig as root should fix the directory.