Has anybody installed OpenCl for AMD on 21.3 ?

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
warriorofthelight
Level 3
Level 3
Posts: 114
Joined: Wed Jan 20, 2016 6:04 am

Has anybody installed OpenCl for AMD on 21.3 ?

Post by warriorofthelight »

Just curios, because I failed several times and have gone back to 20.3. But there is a new version out from AMD, so maybe things have changed? If anybody has installed OpenCl successfully with an AMD card on 21.3 please let me know. I don't want to go through all that again without a clear hope that it might work this time.

And on another note: if one of the experts out there know anything about the status of RustiCL for the Mesa driver and how to use that, please tell me and the world!

Thanks.
Hoser Rob
Level 20
Level 20
Posts: 11776
Joined: Sat Dec 15, 2012 8:57 am

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by Hoser Rob »

I'm no opencl expert but I know it's going to depend on which AMD card, at least. Copy/paste the complete text output of

Code: Select all

inxi -Fxxxpmrz
run in the terminal and wrap it in <code> tags,

A bit of searching is telling me that their opencl support is a bit spotty.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
User avatar
warriorofthelight
Level 3
Level 3
Posts: 114
Joined: Wed Jan 20, 2016 6:04 am

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by warriorofthelight »

I'm not sure that this will help... I am running 20.3 at the moment, because of the issues I had on 21.3 . On 20.3 OpenCl works just fine, but no matter what I tried on 21.x, I never got it to work. There's a new version out on the AMD site, I haven't tried that latest one (cause I don't have 21 installed at the moment). I have a RX570.

I just wanted to know if anybody got it to work (with some more or less recent card). Someone from the dev team here (I suppose she's from the dev team...) said that many people have problems currently with AMD and OpenCl.

Here's the output anyway:

Code: Select all

w@w-mint:~$ inxi -Fxxxpmrz
System:    Kernel: 5.15.0-94-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.2.7 wm: muffin 5.2.1 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:   Type: Desktop System: Gigabyte product: B550M DS3H v: -CF serial: <filter> 
           Mobo: Gigabyte model: B550M DS3H v: x.x serial: <filter> UEFI: American Megatrends LLC. v: F15 date: 07/29/2022 
Memory:    RAM: total: 31.19 GiB used: 2.38 GiB (7.6%) 
           RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:       Topology: 8-Core model: AMD Ryzen 7 5700G with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3 
           L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 121370 
           Speed: 1395 MHz min/max: 1400/3800 MHz boost: enabled Core speeds (MHz): 1: 1397 2: 1408 3: 1397 4: 1649 5: 1403 
           6: 1592 7: 1399 8: 1406 9: 1397 10: 1408 11: 1396 12: 1400 13: 1532 14: 1397 15: 1397 16: 1396 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] 
           vendor: Sapphire Limited driver: amdgpu v: 6.0.5 bus ID: 01:00.0 chip ID: 1002:67df 
           Display: x11 server: X.Org 1.20.13 driver: amdgpu,ati unloaded: fbdev,modesetting,vesa 
           resolution: 2560x1440~60Hz, 2560x1440~60Hz 
           OpenGL: renderer: Radeon RX 570 Series (polaris10 LLVM 15.0.7 DRM 3.51 5.15.0-94-generic) 
           v: 4.6 Mesa 23.1.0-devel direct render: Yes 
Audio:     Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] vendor: Sapphire Limited 
           driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 1002:aaf0 
           Device-2: Advanced Micro Devices [AMD/ATI] driver: snd_hda_intel v: kernel bus ID: 06:00.1 chip ID: 1002:1637 
           Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Gigabyte driver: snd_hda_intel v: kernel 
           bus ID: 06:00.6 chip ID: 1022:15e3 
           Device-4: Audient Audient iD4 type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 3-1:2 chip ID: 2708:0009 
           Sound Server: ALSA v: k5.15.0-94-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Gigabyte driver: r8169 v: kernel 
           port: e000 bus ID: 04:00.0 chip ID: 10ec:8168 
           IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 2.51 TiB used: 1.03 TiB (40.9%) 
           ID-1: /dev/nvme0n1 vendor: Crucial model: CT1000P5PSSD8 size: 931.51 GiB speed: 63.2 Gb/s lanes: 4 
           serial: <filter> rev: P7CR403 scheme: GPT 
           ID-2: /dev/sda vendor: Samsung model: SSD 840 PRO Series size: 238.47 GiB speed: 6.0 Gb/s serial: <filter> 
           rev: 5B0Q scheme: GPT 
           ID-3: /dev/sdb vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB speed: 6.0 Gb/s serial: <filter> 
           rev: 1B6Q scheme: MBR 
           ID-4: /dev/sdc vendor: HGST (Hitachi) model: HTE541010A9E680 size: 931.51 GiB speed: 6.0 Gb/s rotation: 5400 rpm 
           serial: <filter> rev: A560 scheme: MBR 
Partition: ID-1: / size: 233.18 GiB used: 47.52 GiB (20.4%) fs: ext4 dev: /dev/sda2 
           ID-2: /boot/efi size: 511.0 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/sda1 
           ID-3: /home size: 457.38 GiB used: 279.42 GiB (61.1%) fs: ext4 dev: /dev/sdb 
           ID-4: /mnt/Daten_HDD size: 915.82 GiB used: 436.24 GiB (47.6%) fs: ext4 dev: /dev/sdc1 
           ID-5: /mnt/nvme0 size: 670.10 GiB used: 286.55 GiB (42.8%) fs: ext4 dev: /dev/nvme0n1p1 
Sensors:   System Temperatures: cpu: 43.0 C mobo: 34.0 C gpu: amdgpu temp: 16 C 
           Fan Speeds (RPM): N/A gpu: amdgpu fan: 870 
Repos:     No active apt repos in: /etc/apt/sources.list 
           No active apt repos in: /etc/apt/sources.list.d/amdgpu-pro.list 
           Active apt repos in: /etc/apt/sources.list.d/amdgpu-proprietary.list 
           1: deb https://repo.radeon.com/amdgpu/5.5.2/ubuntu focal proprietary
           Active apt repos in: /etc/apt/sources.list.d/amdgpu.list 
           1: deb https://repo.radeon.com/amdgpu/5.5.2/ubuntu focal main
           2: deb-src https://repo.radeon.com/amdgpu/5.5.2/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://ftp.sh.cvut.cz/mint una main upstream import backport
           2: deb http://ubuntu.anexia.at/ubuntu focal main restricted universe multiverse
           3: deb http://ubuntu.anexia.at/ubuntu focal-updates main restricted universe multiverse
           4: deb http://ubuntu.anexia.at/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/rocm.list 
           1: deb [arch=amd64] https://repo.radeon.com/rocm/apt/5.5.2 focal main
           No active apt repos in: /etc/apt/sources.list.d/signal-xenial.list 
           Active apt repos in: /etc/apt/sources.list.d/softmaker.list 
           1: deb [signed-by=/etc/apt/keyrings/softmaker.gpg] https://shop.softmaker.com/repo/apt stable non-free
           No active apt repos in: /etc/apt/sources.list.d/teamviewer.list 
Info:      Processes: 396 Uptime: 1h 52m Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.4.0 alt: 9 Shell: bash v: 5.0.17 
           running in: terminator inxi: 3.0.38 
seasons
Level 5
Level 5
Posts: 572
Joined: Fri Nov 17, 2023 5:00 pm

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by seasons »

So did you try Rusticl or not? viewtopic.php?p=2426528#p2426528

It looks like AMD dropped official support for Polaris GPU's in rocm 4.5, so maybe that's why only older versions work for you.
User avatar
warriorofthelight
Level 3
Level 3
Posts: 114
Joined: Wed Jan 20, 2016 6:04 am

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by warriorofthelight »

seasons wrote: Thu Feb 08, 2024 4:28 pm So did you try Rusticl or not? viewtopic.php?p=2426528#p2426528

It looks like AMD dropped official support for Polaris GPU's in rocm 4.5, so maybe that's why only older versions work for you.
I don't know what you mean. The latest drivers specifically say RX 500 series in the release notes, and many even older cards.

But cool, I didn't see your reply on the other thread. No, I did not try Rusticl yet, because I had no idea how. I have 20.3 now with AMD drivers running, when I run your command no rusticl platform shows, only the AMD. So I guess I need to install 21.3 somehow and try that out there.

And how is that supposed to work anyway, you just set the env variable and that's it? An opencl device will suddenly be available? Would be cool...

Code: Select all

$ RUSTICL_ENABLE=radeonsi clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3380.4)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback cl_amd_offline_devices 
  Platform Host timer resolution                  1ns
  Platform Extensions function suffix             AMD

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     Ellesmere
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 2.0 AMD-APP (3380.4)
  Driver Version                                  3380.4 (PAL,HSAIL)
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     GPU
  Device Board Name (AMD)                         Radeon RX 570 Series
  Device Topology (AMD)                           PCI-E, 01:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               32
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                16
  SIMD instruction width (AMD)                    1
  Max clock frequency                             1244MHz
  Graphics IP (AMD)                               8.0
  Device Partition                                (core)
    Max number of sub-devices                     32
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x1024
  Max work group size                             256
  Preferred work group size (AMD)                 256
  Max work group size (AMD)                       1024
  Preferred work group size multiple              64
  Wavefront width (AMD)                           64
  Preferred / native vector sizes                 
seasons
Level 5
Level 5
Posts: 572
Joined: Fri Nov 17, 2023 5:00 pm

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by seasons »

warriorofthelight wrote: Thu Feb 08, 2024 4:56 pm I don't know what you mean. The latest drivers specifically say RX 500 series in the release notes, and many even older cards.
https://rocm.docs.amd.com/projects/inst ... ments.html
User avatar
warriorofthelight
Level 3
Level 3
Posts: 114
Joined: Wed Jan 20, 2016 6:04 am

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by warriorofthelight »

Ok... but here

https://www.amd.com/en/support/kb/relea ... ux-23-40-1

it's listed clearly. I don't even know what this rocm thing is to be honest ... I know it's somehow connected to OpenCl, but how...

Also I know that there are 2 ways to get AMD OpenCl support: the driver I linked to, amdgpu. And there is another full stack of tools for developers I suppose that includes it as well, and rocm is also part of this, whatever it is....

So maybe you linked to the latter?
seasons
Level 5
Level 5
Posts: 572
Joined: Fri Nov 17, 2023 5:00 pm

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by seasons »

Oh, I see. For older cards, you have to use opencl=legacy, and it only works with AMD's version of amdgpu kernel driver (i.e. you can't use it with the regular amdgpu kernel module by using --no-dkms).
So:

Code: Select all

sudo amdgpu-install --usecase=opencl --opencl=legacy --accept-eula
is equivalent to installing:

Code: Select all

amdgpu-core amdgpu-dkms amdgpu-dkms-firmware amdgpu-pro-core clinfo-amdgpu-pro libdrm-amdgpu-amdgpu1 libdrm-amdgpu-common libdrm2-amdgpu ocl-icd-libopencl1-amdgpu-pro opencl-legacy-amdgpu-pro-icd
Two different implementations of OpenCL (legacy and ROCr) are provided. Either of these implementations or both of them can be installed on the target system. Legacy is deprecated and will be removed in the future. Once removed, legacy products will no longer be officially supported, but some products might work on the ROCr OpenCL implementation with varying results.
-- https://amdgpu-install.readthedocs.io/e ... -component
User avatar
SMG
Level 25
Level 25
Posts: 33020
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by SMG »

seasons wrote: Fri Feb 09, 2024 10:49 am Oh, I see. For older cards, you have to use opencl=legacy, and it only works with AMD's version of amdgpu kernel driver (i.e. you can't use it with the regular amdgpu kernel module by using --no-dkms).
According to https://amdgpu-install.readthedocs.io/en/latest/install-script.html]this:
ROCr: Provides support for Vega 10 and newer hardware.

Legacy: Provides support for hardware older than Vega 10.
which means the RX 570 is not Legacy.

This article AMD Begins Polaris and Vega GPU Retirement Process, Reduces Ongoing Driver Support which has a quote from AMD seems to indicate some driver versions have changes for Polaris and some do not because they are only fixing "critical" issues. However, it is not (yet) "legacy" status.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
seasons
Level 5
Level 5
Posts: 572
Joined: Fri Nov 17, 2023 5:00 pm

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by seasons »

SMG wrote: Fri Feb 09, 2024 11:10 am Legacy: Provides support for hardware older than Vega 10 ... which means the RX 570 is not Legacy.
The RX 570 is a Polaris card, and Polaris is older than Vega, so it's "legacy" when it comes to the OpenCL component.
seems to indicate some driver versions have changes for Polaris and some do not because they are only fixing "critical" issues. However, it is not (yet) "legacy" status.
That is the Windows driver where they split off Polaris and Vega to a more stable branch.
User avatar
SMG
Level 25
Level 25
Posts: 33020
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by SMG »

seasons wrote: Fri Feb 09, 2024 11:27 am
SMG wrote: Fri Feb 09, 2024 11:10 am Legacy: Provides support for hardware older than Vega 10 ... which means the RX 570 is not Legacy.
The RX 570 is a Polaris card, and Polaris is older than Vega, so it's "legacy" when it comes to the OpenCL component.
seems to indicate some driver versions have changes for Polaris and some do not because they are only fixing "critical" issues. However, it is not (yet) "legacy" status.
That is the Windows driver where they split off Polaris and Vega to a more stable branch.
I misread that data. Thanks for the clarification.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
warriorofthelight
Level 3
Level 3
Posts: 114
Joined: Wed Jan 20, 2016 6:04 am

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by warriorofthelight »

So switched to 21.3 and tried to install OpenCL .... again :( ....
This is what happens:

Code: Select all

$ amdgpu-install --opencl=legacy,rocr 
WARNING: legacy OpenCL is deprecated and will be removed soon.
OK:1 http://ubuntu.lagis.at/ubuntu jammy InRelease
OK:2 http://ubuntu.lagis.at/ubuntu jammy-updates InRelease                                                                     
OK:3 http://ubuntu.lagis.at/ubuntu jammy-backports InRelease                                                                   
Ign:4 https://mirror.alwyzon.net/linuxmint virginia InRelease                                                                  
OK:5 https://mirror.alwyzon.net/linuxmint virginia Release                                                                     
OK:6 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                
OK:7 https://shop.softmaker.com/repo/apt stable InRelease                                                    
OK:9 https://repo.radeon.com/amdgpu/6.0.1/ubuntu jammy InRelease
OK:10 https://repo.radeon.com/rocm/apt/6.0.1 jammy InRelease
Paketlisten werden gelesen… Fertig
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
E: Paket clinfo-amdgpu-pro kann nicht gefunden werden.
E: Paket opencl-legacy-amdgpu-pro-icd kann nicht gefunden werden.
When I instead try installing the packages myself, this happens (the same, basically).

Code: Select all

$ sudo apt install amdgpu-core amdgpu-dkms amdgpu-dkms-firmware amdgpu-pro-core clinfo-amdgpu-pro libdrm-amdgpu-amdgpu1 libdrm-amdgpu-common libdrm2-amdgpu ocl-icd-libopencl1-amdgpu-pro opencl-legacy-amdgpu-pro-icd
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
E: Paket amdgpu-pro-core kann nicht gefunden werden.
E: Paket clinfo-amdgpu-pro kann nicht gefunden werden.
E: Paket ocl-icd-libopencl1-amdgpu-pro kann nicht gefunden werden.
E: Paket opencl-legacy-amdgpu-pro-icd kann nicht gefunden werden.
I'm really, really getting tired of these AMD drivers tbh.
User avatar
warriorofthelight
Level 3
Level 3
Posts: 114
Joined: Wed Jan 20, 2016 6:04 am

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by warriorofthelight »

Ok done some research, I am running out of hope.
https://github.com/ROCm/ROCm/issues/1730

If I understand correctly, people, serious researchers that know what they're doing (I do not when it comes to OpenCL) have been trying to install the AMD drivers for older cards (apparently newer should work? I tried with a very recent RX 6700 and failed as well...) for ages and they all failed. It seems AMD just has no interest in getting their drivers in order, and all the talk about AMD being such a great supporter of Linux ... well, yes, but not really.
seasons
Level 5
Level 5
Posts: 572
Joined: Fri Nov 17, 2023 5:00 pm

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by seasons »

I think part of your problem is trying to use the 6.0.1 version. Version 5.7.1 looks to be the last one with legacy OpenCL support in the repo.
Compare:
https://repo.radeon.com/amdgpu/5.7.1/ub ... rietary/o/
https://repo.radeon.com/amdgpu/6.0.1/ub ... rietary/o/

EDIT: I should probably point out that the 5.7.1 driver doesn't officially support kernel 6.5, so you'd probably have to go back to 6.2 or 5.15.
User avatar
warriorofthelight
Level 3
Level 3
Posts: 114
Joined: Wed Jan 20, 2016 6:04 am

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by warriorofthelight »

seasons wrote: Fri Feb 16, 2024 1:42 pm
I think part of your problem is trying to use the 6.0.1 version. Version 5.7.1 looks to be the last one with legacy OpenCL support in the repo.
Compare:
https://repo.radeon.com/amdgpu/5.7.1/ub ... rietary/o/
https://repo.radeon.com/amdgpu/6.0.1/ub ... rietary/o/

EDIT: I should probably point out that the 5.7.1 driver doesn't officially support kernel 6.5, so you'd probably have to go back to 6.2 or 5.15.
Makes sense, but how would I get that version? I'm using the amdgpu-installer, so it's not my decision what it does? I'm still baffled what all this is about, the release notes of the amdgpu driver says clearly that RX 570 is supported. It might just plainly be wrong, but that just seems a bit unlikely.
seasons
Level 5
Level 5
Posts: 572
Joined: Fri Nov 17, 2023 5:00 pm

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by seasons »

warriorofthelight wrote: Mon Feb 19, 2024 10:51 am Makes sense, but how would I get that version?
Remove anything you installed from the AMD repo(s) and edit your apt sources to change 6.0.1 to 5.7.1

Code: Select all

OK:9 https://repo.radeon.com/amdgpu/6.0.1/ubuntu jammy InRelease
OK:10 https://repo.radeon.com/rocm/apt/6.0.1 jammy InRelease
The release notes of the amdgpu driver says clearly that RX 570 is supported.
It is supported by the driver (kernel module). The OpenCL component support is a different story.
User avatar
warriorofthelight
Level 3
Level 3
Posts: 114
Joined: Wed Jan 20, 2016 6:04 am

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by warriorofthelight »

So... same errors with 5.7.1 apt sources:

Code: Select all

$ amdgpu-install --opencl=legacy,rocr
WARNING: legacy OpenCL is deprecated and will be removed soon.
OK:1 http://ubuntu.lagis.at/ubuntu jammy InRelease
OK:2 http://ubuntu.lagis.at/ubuntu jammy-updates InRelease                                                                     
OK:3 http://ubuntu.lagis.at/ubuntu jammy-backports InRelease                                                                   
Ign:4 https://mirror.alwyzon.net/linuxmint virginia InRelease                                                                  
OK:5 https://mirror.alwyzon.net/linuxmint virginia Release                                                                
OK:6 http://security.ubuntu.com/ubuntu jammy-security InRelease                                   
OK:7 https://shop.softmaker.com/repo/apt stable InRelease                                         
OK:9 https://repo.radeon.com/amdgpu/5.7.1/ubuntu jammy InRelease          
OK:10 https://repo.radeon.com/rocm/apt/5.7.1 jammy InRelease
Paketlisten werden gelesen… Fertig
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
E: Paket clinfo-amdgpu-pro kann nicht gefunden werden.
E: Paket opencl-legacy-amdgpu-pro-icd kann nicht gefunden werden.
or with manual package installation:

Code: Select all

$ sudo apt install amdgpu-core amdgpu-dkms amdgpu-dkms-firmware amdgpu-pro-core clinfo-amdgpu-pro libdrm-amdgpu-amdgpu1 libdrm-amdgpu-common libdrm2-amdgpu ocl-icd-libopencl1-amdgpu-pro opencl-legacy-amdgpu-pro-icd
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
E: Paket amdgpu-pro-core kann nicht gefunden werden.
E: Paket clinfo-amdgpu-pro kann nicht gefunden werden.
E: Paket ocl-icd-libopencl1-amdgpu-pro kann nicht gefunden werden.
E: Paket opencl-legacy-amdgpu-pro-icd kann nicht gefunden werden.
RustiCL doesn't work either, probably needs something else?

Code: Select all

$ RUSTICL_ENABLE=radeonsi clinfo
free(): invalid pointer
Abgebrochen (Speicherabzug geschrieben)
seasons
Level 5
Level 5
Posts: 572
Joined: Fri Nov 17, 2023 5:00 pm

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by seasons »

warriorofthelight wrote: Wed Feb 21, 2024 11:26 am So... same errors with 5.7.1 apt sources:
No idea. It works in my VM. Are those are "package not found" errors?
billyswong
Level 8
Level 8
Posts: 2485
Joined: Wed Aug 14, 2019 1:02 am

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by billyswong »

warriorofthelight wrote: Wed Feb 21, 2024 11:26 am RustiCL doesn't work either, probably needs something else?

Code: Select all

$ RUSTICL_ENABLE=radeonsi clinfo
free(): invalid pointer
Abgebrochen (Speicherabzug geschrieben)
If one want to use RustiCL, one is supposed to clean up ROCm, then setup ppa:kisak/kisak-mesa (No RustiCL by default yet in LM 21.x, should be there by LM 22)

An old discussion on how to install RustiCL viewtopic.php?t=400380

p.s. One may need to remove arch=amd64 within the kisak ppa entry at Software Sources > PPA. One may also need to install package mesa-opencl-icd manually.
limsandy
Level 1
Level 1
Posts: 2
Joined: Fri Apr 26, 2024 1:27 am

Re: Has anybody installed OpenCl for AMD on 21.3 ?

Post by limsandy »

Hello billyswong and seasons,

I have 2 systems with AMD Ryzen 5600G and 4650G PRO, both have Radeon Vega 7 iGPU. I'd like to run some programs that use OpenCL.

Do I install ROCm or RustiCL? I think ROCm is better in my case, yeah? Do I run amdgpu-install --usecase=opencl --opencl=legacy --no-dkms --accept-eula ?

Is there any restriction, like do I have to run older Linux kernel version?

Wait should my OpenCL be legacy if my GPU is Vega-based?
Post Reply

Return to “Graphics Cards & Monitors”