[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OpenCL with Radeon GPU





On Mon, Apr 24, 2023 at 4:00 PM Sarunas Burdulis <sarunas@math.dartmouth.edu> wrote:
On 4/24/23 14:02, Arno Lehmann wrote:
> Hi all,
>
> I'm currently trying to set up a new workstation and wanted to enable
> OpenCL for future use.
>
> GPU hardware is an AMD Radeon RX 6750 XT.
>
> I have a base installation of Debian 12 up and running, kernel 6.1.0.7
> including amdgpu and Mesa 22.3.
>
> Any attempt to actually run any OpenCL program results in an error:
>
> fatal error: cannot open file
> '/usr/lib/clc/gfx1030-amdgcn-mesa-mesa3d.bc': No such file or directory
>
> which is depending on the using program reported more or less easily
> visible. clinfo is sufficient to show this.
>
> Trying to diagnose this with available documentation I learned that
> - I am not even able to determine if OpenCL itself should work,
> - if it should work with the hardware I have here,
> - which versions of amdgpu, xserver, Mesa, llvm or clang I need or which
> particular drivers / packages to install
>
> I have tried several versions of the possible packages, but lacking
> documentation that makes sense to me that was more like blindly poking
> in the dark.
>
> I even tried following some advice to use AMD's out-of-kernel driver
> pack, but the installation script stumbles over dependencies (which may
> or may not be due to the not-yet-stable base distro).
>
> Anyway, the current state is less than satisfying, because I don't even
> understant if OpenCL with Radeon RX 6xxx GPU can even work on Linux.
>
> I would give a different distro a try, but as a mostly-Debian-person I'm
> not really inclined to start learning to maintain more distros. Just
> using Windows would be a solution I would not appreciate at all...
>
> So, my question here: Can anybody confirm this can work in general, or
> even point me to a place for current, correct documentation?

Yes, in general OpenCL for current AMD GPUs works with the open source
Linux kernel's amdgpu.ko module. On Ubuntu one can install ROCm from
AMD's repositories

`apt install rocm-opencl-runtime`

which is open source well, but not in standard repositories. Not sure if
that extends to Debian.

Debian has: `sudo apt info rocm-device-libs` which provides openCL runtime.
 
I don't know if this can be substituted in any degree by Mesa.

--
Sarunas Burdulis
Dartmouth Mathematics
math.dartmouth.edu/~sarunas

· https://useplaintext.email ·



--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀

Reply to: