Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #257551

Re: OpenCL with Radeon GPU

From Timothy M Butterworth <timothy.m.butterworth@gmail.com>
Newsgroups linux.debian.user
Subject Re: OpenCL with Radeon GPU
Date 2023-04-24 23:40 +0200
Message-ID <Goc4F-4gP2-7@gated-at.bofh.it> (permalink)
References <Go8Nr-4eYT-3@gated-at.bofh.it> <GoaFz-4g6F-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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/
⠈⠳⣄⠀⠀

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

OpenCL with Radeon GPU Arno Lehmann <al@its-lehmann.de> - 2023-04-24 20:10 +0200
  Re: OpenCL with Radeon GPU Sarunas Burdulis <sarunas@math.dartmouth.edu> - 2023-04-24 22:10 +0200
    Re: OpenCL with Radeon GPU Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2023-04-24 23:40 +0200
      Re: OpenCL with Radeon GPU Arno Lehmann <al@its-lehmann.de> - 2023-04-25 00:10 +0200
        Re: OpenCL with Radeon GPU Yvan Masson <yvan@masson-informatique.fr> - 2023-04-25 11:10 +0200
          Re: OpenCL with Radeon GPU Arno Lehmann <al@its-lehmann.de> - 2023-04-25 12:40 +0200
            Re: OpenCL with Radeon GPU Arno Lehmann <al@its-lehmann.de> - 2023-04-25 16:40 +0200
              Re: OpenCL with Radeon GPU Sarunas Burdulis <sarunas@math.dartmouth.edu> - 2023-04-26 18:20 +0200
                Re: OpenCL with Radeon GPU Arno Lehmann <al@its-lehmann.de> - 2023-05-08 13:50 +0200
  Re: OpenCL with Radeon GPU Jörg-Volker Peetz <jvpeetz@web.de> - 2023-04-25 11:30 +0200
    Re: OpenCL with Radeon GPU Arno Lehmann <al@its-lehmann.de> - 2023-04-25 13:00 +0200
      Re: OpenCL with Radeon GPU Jörg-Volker Peetz <jvpeetz@web.de> - 2023-04-26 11:40 +0200
        Re: OpenCL with Radeon GPU Arno Lehmann <al@its-lehmann.de> - 2023-04-26 15:50 +0200
          Re: OpenCL with Radeon GPU Yvan Masson <yvan@masson-informatique.fr> - 2023-04-26 17:00 +0200

csiph-web