cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

alainbrest29200
Adept II

openCL linux debian bullseye / sid

hello to all.

i'm on debian bullseye testing / sid

I'm looking to install openCL since amdgpu-pro 20.45.

I know debian works with ubuntu (which I also have) but I much prefer debian.

Do you have any leads, ideas ? solutions ?

(amd rx 6800 under sid)

friendly.

Alain.

ps: even if it's negative, you can answer me.

45 Replies
Roesjka
Adept I

Hi,

Running Debian testing/bullseye with a Ryzen 3600 32GB ram and 2 videocards. Primary Radeon RX 580 used as a 2nd mining card when I am not gaming or doing heavy workloads. The Nvida GTX 1070 is for mining only.

Installing the opencl drivers is fairly easy, download the latest AMD drivers untar them in a directory of your choose.

CD into that directory and run the following command: amdgpu-install --opencl=legacy --headless --no-dkms

That should install the following packages:

amdgpu-core
amdgpu-pin
amdgpu-pro-core
clinfo-amdgpu-pro
libdrm-amdgpu-amdgpu1
libdrm-amdgpu-common
libdrm2-amdgpu
ocl-icd-libopencl1-amdgpu-pro
opencl-orca-amdgpu-pro-icd

Unfortunately you cannot install the opencl drivers for rocr as hat is only possible if you have kernel 5.9 or earlier.

Debian testing is already on kernel 5.10. Hopefully AMD will provide us with a drivers which can be installed on kernels 5.10 and/or higher.

Scrounging around to find another 2nd hand RX 580 got this one for EUR.300. Wish I could buy a RX 6800 (XT) for just around MSRP.

Roesjka

 

0 Likes

Hello,

Has there been any developments in this? I use Debian 11 Bullseye, and I don't know to install OpenCL support. Please help.

0 Likes

maybe you could take a look here :

I hope it will help you.

French forum .

opencl-avec-amd 

0 Likes

Thanks,

That was very promising! Unfortunately, didn't work with my card.

I've taken apart all these scripts and were installing it back and forth, including manual installation of files, installing via their git install scipt, installing via amd-install script without dkms, but everything failed. I was cleaning it and uninstalling each time in between attempts.

I can have mesa drivers from that AMD package, and it works, but openCL despite being installed manually via these scripts doesn't detect my card. I have 1 new openCP platform visible in "clinfo" but 0 devices.

 

Any news from AMD, when will DKMS be fixed on debian? If DKMS is fixed I can just install entire driver without picking apart pieces like OpenCL which then don't work..

0 Likes

I just read you post. Thanks.

Wow so we need AMD to step up here! I've tried rocr and legacy versions, but none of them work. AMD please update it!

0 Likes

Thanks Roesjka. Your command works, it installs OpenCL well.

but, unfortunately, the installation is not operational.

The feedback from clinfo shows that neither the CPU nor the GPU is recognized by OpenCL.

So I cancelled your command.

sudo amdgpu-uninstall

0 Likes

$ sudo ./amdgpu-install --opencl=legacy --headless --no-dkms
[sudo] Mot de passe de alain :
deb [ trusted=yes ] file:/var/opt/amdgpu-pro-local/ ./
Réception de :1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign :1 file:/var/opt/amdgpu-pro-local ./ InRelease
Réception de :2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Réception de :2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Réception de :3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Ign :3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Réception de :4 file:/var/opt/amdgpu-pro-local ./ Packages [129 kB]
Atteint :5 http://deb.debian.org/debian stable InRelease
Atteint :6 https://deb.debian.org/debian testing InRelease
Atteint :7 https://deb.debian.org/debian-debug unstable-debug InRelease
Atteint :8 https://deb.debian.org/debian unstable InRelease
Atteint :9 https://deb.debian.org/debian experimental InRelease
Atteint :10 https://security.debian.org/debian-security testing-security InRelease
Lecture des listes de paquets... Fait
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
Version choisie « 21.30-1290604 » (localhost [all]) pour « amdgpu-pin »
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
libextutils-pkgconfig-perl libgeos-3.9.1
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les NOUVEAUX paquets suivants seront installés :
amdgpu-pin
0 mis à jour, 1 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 0 o/2 828 o dans les archives.
Après cette opération, 27,6 ko d'espace disque supplémentaires seront utilisés.
Réception de :1 file:/var/opt/amdgpu-pro-local ./ amdgpu-pin 21.30-1290604 [2 828 B]
Récupération des rapports de bogue… Fait
Analyse des informations Trouvé/Corrigé… Fait
Sélection du paquet amdgpu-pin précédemment désélectionné.
(Lecture de la base de données... 409908 fichiers et répertoires déjà installés.
)
Préparation du dépaquetage de .../amdgpu-pin_21.30-1290604_all.deb ...
Dépaquetage de amdgpu-pin (21.30-1290604) ...
Paramétrage de amdgpu-pin (21.30-1290604) ...
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
libextutils-pkgconfig-perl libgeos-3.9.1
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Les paquets supplémentaires suivants seront installés :
amdgpu-core amdgpu-pro-core libdrm-amdgpu-amdgpu1 libdrm-amdgpu-common
libdrm2-amdgpu ocl-icd-libopencl1-amdgpu-pro
Les NOUVEAUX paquets suivants seront installés :
amdgpu-core amdgpu-pro-core clinfo-amdgpu-pro libdrm-amdgpu-amdgpu1
libdrm-amdgpu-common libdrm2-amdgpu ocl-icd-libopencl1-amdgpu-pro
opencl-orca-amdgpu-pro-icd
0 mis à jour, 8 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 0 o/22,9 Mo dans les archives.
Après cette opération, 97,4 Mo d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n]

Réception de :1 file:/var/opt/amdgpu-pro-local ./ amdgpu-core 21.30-1290604 [2 204 B]
Réception de :2 file:/var/opt/amdgpu-pro-local ./ amdgpu-pro-core 21.30-1290604 [5 548 B]
Réception de :3 file:/var/opt/amdgpu-pro-local ./ ocl-icd-libopencl1-amdgpu-pro 21.30-1290604 [14,0 kB]
Réception de :4 file:/var/opt/amdgpu-pro-local ./ clinfo-amdgpu-pro 21.30-1290604 [30,8 kB]
Réception de :5 file:/var/opt/amdgpu-pro-local ./ libdrm2-amdgpu 1:2.4.106-1290604 [36,2 kB]
Réception de :6 file:/var/opt/amdgpu-pro-local ./ libdrm-amdgpu-common 1.0.0-1290604 [4 796 B]
Réception de :7 file:/var/opt/amdgpu-pro-local ./ libdrm-amdgpu-amdgpu1 1:2.4.106-1290604 [20,8 kB]
Réception de :8 file:/var/opt/amdgpu-pro-local ./ opencl-orca-amdgpu-pro-icd 21.30-1290604 [22,8 MB]
Récupération des rapports de bogue… Fait
Analyse des informations Trouvé/Corrigé… Fait
Sélection du paquet amdgpu-core précédemment désélectionné.
(Lecture de la base de données... 409924 fichiers et répertoires déjà installés.
)
Préparation du dépaquetage de .../0-amdgpu-core_21.30-1290604_all.deb ...
Dépaquetage de amdgpu-core (21.30-1290604) ...
Sélection du paquet amdgpu-pro-core précédemment désélectionné.
Préparation du dépaquetage de .../1-amdgpu-pro-core_21.30-1290604_all.deb ...
Dépaquetage de amdgpu-pro-core (21.30-1290604) ...
Sélection du paquet ocl-icd-libopencl1-amdgpu-pro:amd64 précédemment désélection
né.
Préparation du dépaquetage de .../2-ocl-icd-libopencl1-amdgpu-pro_21.30-1290604_
amd64.deb ...
Dépaquetage de ocl-icd-libopencl1-amdgpu-pro:amd64 (21.30-1290604) ...
Sélection du paquet clinfo-amdgpu-pro précédemment désélectionné.
Préparation du dépaquetage de .../3-clinfo-amdgpu-pro_21.30-1290604_amd64.deb ..
.
Dépaquetage de clinfo-amdgpu-pro (21.30-1290604) ...
Sélection du paquet libdrm2-amdgpu:amd64 précédemment désélectionné.
Préparation du dépaquetage de .../4-libdrm2-amdgpu_2.4.106-1290604_amd64.deb ...
Dépaquetage de libdrm2-amdgpu:amd64 (1:2.4.106-1290604) ...
Sélection du paquet libdrm-amdgpu-common précédemment désélectionné.
Préparation du dépaquetage de .../5-libdrm-amdgpu-common_1.0.0-1290604_all.deb .
..
Dépaquetage de libdrm-amdgpu-common (1.0.0-1290604) ...
Sélection du paquet libdrm-amdgpu-amdgpu1:amd64 précédemment désélectionné.
Préparation du dépaquetage de .../6-libdrm-amdgpu-amdgpu1_2.4.106-1290604_amd64.
deb ...
Dépaquetage de libdrm-amdgpu-amdgpu1:amd64 (1:2.4.106-1290604) ...
Sélection du paquet opencl-orca-amdgpu-pro-icd:amd64 précédemment désélectionné.
Préparation du dépaquetage de .../7-opencl-orca-amdgpu-pro-icd_21.30-1290604_amd
64.deb ...
Dépaquetage de opencl-orca-amdgpu-pro-icd:amd64 (21.30-1290604) ...
Paramétrage de amdgpu-core (21.30-1290604) ...
Paramétrage de libdrm-amdgpu-common (1.0.0-1290604) ...
Paramétrage de amdgpu-pro-core (21.30-1290604) ...
Paramétrage de ocl-icd-libopencl1-amdgpu-pro:amd64 (21.30-1290604) ...
Paramétrage de clinfo-amdgpu-pro (21.30-1290604) ...
Paramétrage de libdrm2-amdgpu:amd64 (1:2.4.106-1290604) ...
Paramétrage de libdrm-amdgpu-amdgpu1:amd64 (1:2.4.106-1290604) ...
Paramétrage de opencl-orca-amdgpu-pro-icd:amd64 (21.30-1290604) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.32-4) ...

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

Platform Name AMD Accelerated Parallel Processing
Number of devices 0

NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform
clCreateContext(NULL, ...) [default] No platform
clCreateContext(NULL, ...) [other]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No devices found in platform

 

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bookworm/sid
Release: unstable
Codename: sid

$ uname -a
Linux sid 5.14.0-3-amd64 #1 SMP Debian 5.14.12-1 (2021-10-14) x86_64 GNU/Linux

$ lspci -nnkd::0300
0a:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] [1002:73bf] (rev c3)
Subsystem: Sapphire Technology Limited Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] [1da2:e437]
Kernel driver in use: amdgpu
Kernel modules: amdgpu

Sapphire Radeon RX 6800

actually , on debian , OpenCL do not work at all

also tested on a virtual machine . (Linux ubuntu 20.04.3 LTS)

do not  work anymore .

 

 

0 Likes

I can confirm there is currently no way to get opencl working on debian bullseye with my 6900 XT.

Here is what I tried:

amdgpu-pro-21.20: Installs but does not work.

amdgpu-pro-21.30: Does not install same issue as the others have with the kernel build failing.

ROCm: Does not support RDNA2 or kernel 5.10.

mesa clover: Pretty much useless for everything atm.

If anyone has found a solution for this I am very much interested in hearing it but as far as I can tell we might be screwed until next april when ubuntu 22.04 comes out and amd releases an update to support it.

AMD, bump! We need this.

There has been a development with rocm.

https://old.reddit.com/r/Amd/comments/qk2lgi/official_rocm_website_now_lists_support_for_rdna_2/

One comment there mentions being able to install it on debian bullseye but does not say how.

I will take a shot at trying to figure out what he did next weekend and will post how if I have any luck.

0 Likes

After fiddling around for 8 hours I am 'lucky' to know it is not my fault so far.

@bradx954could you find something out from the Reddit guy?

 

Is there any other update so far?

 

First I tried to get it running in a virtual machine. This did not work at all, it seems like you need to install the OpenCL driver also on the host even when using PCI-e passthrough.

Has anyone else tried that?

 

I hope AMD will finally notice us.

0 Likes

No I was not able to get it to work unfortunately.

I think we are just **bleep** out of luck until amd does something.

0 Likes

Another thread bump for AMD to notice this!

0 Likes

AMD has made this for ubuntu 20.04.3 LTS :

https://repo.radeon.com/amdgpu-install/21.40.1/ubuntu/focal/amdgpu-install_21.40.1.40501-1_all.deb 

but i don't know how to use it ?

documentations :

https://amdgpu-install.readthedocs.io/en/21.40/ 

https://rocmdocs.amd.com/en/latest/Current_Release_Notes/Current-Release-Notes.html 

do someone can give me explanations ? i understand nothing .

especially for debian .

thanks a lot .

 

0 Likes

I'm running Ubuntu 21.10 with a Vega 64. With earlier releases I added rocm.list first, and then I could install OpenCL only with the following command:

amdgpu-install opencl=rocr --headless --no-dkms

This used to work quite well, this will install OpenCL only, and it won't try to compile a kernel module, which fails on my system. I've tested this with a number of OpenCL programs like Folding at Home, and Blender 2.9, and it all was working.

AMD has now merged the amdgpu-pro driver with ROCm, and you can use a new installation program. I've installed this new OpenCL driver on my system with the following command:

sudo amdgpu-install --usecase=opencl --no-dkms --no-32

I'm still using no-dkms because I'm not running one of the supported kernels, and I'm using no-32 to get rid of missing dependencies. This seems to be working as well.

There was one issue though, my system obviously is too new, and was missing libgcc-7-dev, and libpython3.8. I saw somewhere that you could get around this by creating dummy versions of libgcc-7-dev, and libpython3.8, and then linking the dummy libpython3.8 to 3.9. This did the trick indeed.

The other day I saw a post announcing that Blender 3 will be removing support for OpenCL, and will be using HIP. That's why I've currently installed not only OpenCL, but HIP (and other ROCm stuff) as well with the following command:

sudo amdgpu-install --usecase=rocm --no-dkms --no-32

0 Likes

thank you ableeker .

but unfornately , your commands do not seem to work at all on my config .

 

0 Likes

I'm assuming you've installed the new installation program first? You can download it from AMD.com. It's a rpm/deb file, and I got the Ubuntu version installed in the end.

0 Likes

AMD, any news on this? We need OpenCL on Debian!

0 Likes

This installs successfully on debian bullseye but yields this below when running clinfo. I think the issue is rocm still does not support rdna2. You mention you have a vega 64 which is supported by rocm which is why your command will work for you but not the other commentator. I feel pretty optimistic this is a step in the right direction by amd though since it does not try to compile kernel modules or anything in the installer we just have to hope rocm 5 brings proper rdna2 support.

Number of platforms                               1
 Platform Name                                   AMD Accelerated Parallel Processing
 Platform Vendor                                 Advanced Micro Devices, Inc.
 Platform Version                                OpenCL 2.2 AMD-APP (3361.0)
 Platform Profile                                FULL_PROFILE
 Platform Extensions                             cl_khr_icd cl_amd_event_callback  
 Platform Extensions function suffix             AMD
 Platform Host timer resolution                  1ns

 Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 0

NULL platform behavior
 clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  AMD Accelerated Parallel Processing
 clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No devices found in platform [AMD Accelerated Parallel Processing?]
 clCreateContext(NULL, ...) [default]            No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
 clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found in platform

 ICD loader properties
 ICD loader Name                                 OpenCL ICD Loaderns
 ICD loader Vendor                               OCL Icd free softwarens
 ICD loader Version                              2.2.14ns
 ICD loader Profile                              OpenCL 3.0ns
 

0 Likes

here is what i have done with the new *.deb file :

amdgpu-install --opencl=rocr --no-dkms

[sudo] Mot de passe de alain :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet amdgpu-lib
E: Impossible de trouver le paquet amdgpu-lib32
E: Impossible de trouver le paquet rocm-hip-runtime
E: Impossible de trouver le paquet rocm-opencl-runtime

 

0 Likes

hi guys     

i finally managed to install opencl on debian sid.

i only needed the lastest kernel (5.15.6 kernel.org)

clinfo :

Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.0 AMD-APP (3314.0)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback
Platform Extensions function suffix AMD

Platform Name AMD Accelerated Parallel Processing
Number of devices 1
Device Name gfx1030
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 2.0
Driver Version 3314.0 (HSA1.1,LC)
Device OpenCL C Version OpenCL C 2.0
Device Type GPU
Device Board Name (AMD) Navi 21 [Radeon RX 6800/6800 XT / 6900 XT]
Device PCI-e ID (AMD) 0x73bf
Device Topology (AMD) PCI-E, 0000:0a:00.0
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 30
SIMD per compute unit (AMD) 4
SIMD width (AMD) 32
SIMD instruction width (AMD) 1
Max clock frequency 2475MHz
Graphics IP (AMD) 10.3
Device Partition (core)
Max number of sub-devices 30
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 (kernel) 32
Wavefront width (AMD) 32
Preferred / native vector sizes
char 4 / 4
short 2 / 2
int 1 / 1
long 1 / 1
half 1 / 1 (cl_khr_fp16)
float 1 / 1
double 1 / 1 (cl_khr_fp64)
Half-precision Floating-point support (cl_khr_fp16)
Denormals No
Infinity and NANs No
Round to nearest No
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Single-precision Floating-point support (core)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Address bits 64, Little-Endian
Global memory size 17163091968 (15.98GiB)
Global free memory (AMD) 16760832 (15.98GiB) 16760832 (15.98GiB)
Global memory channels (AMD) 8
Global memory banks per channel (AMD) 4
Global memory bank width (AMD) 256 bytes
Error Correction support No
Max memory allocation 14588628168 (13.59GiB)
Unified memory for Host and Device No
Shared Virtual Memory (SVM) capabilities (core)
Coarse-grained buffer sharing Yes
Fine-grained buffer sharing Yes
Fine-grained system sharing No
Atomics No
Minimum alignment for any data type 128 bytes
Alignment of base address 1024 bits (128 bytes)
Preferred alignment for atomics
SVM 0 bytes
Global 0 bytes
Local 0 bytes
Max size for global variable 14588628168 (13.59GiB)
Preferred total size of global vars 17163091968 (15.98GiB)
Global Memory cache type Read/Write
Global Memory cache size 16384 (16KiB)
Global Memory cache line size 64 bytes
Image support Yes
Max number of samplers per kernel 29631
Max size for 1D images from buffer 134217728 pixels
Max 1D or 2D image array size 8192 images
Base address alignment for 2D image buffers 256 bytes
Pitch alignment for 2D image buffers 256 pixels
Max 2D image size 16384x16384 pixels
Max 3D image size 16384x16384x8192 pixels
Max number of read image args 128
Max number of write image args 8
Max number of read/write image args 64
Max number of pipe args 16
Max active pipe reservations 16
Max pipe packet size 1703726280 (1.587GiB)
Local memory type Local
Local memory size 65536 (64KiB)
Local memory size per CU (AMD) 65536 (64KiB)
Local memory banks (AMD) 32
Max number of constant args 8
Max constant buffer size 14588628168 (13.59GiB)
Preferred constant buffer size (AMD) 16384 (16KiB)
Max size of kernel argument 1024
Queue properties (on host)
Out-of-order execution No
Profiling Yes
Queue properties (on device)
Out-of-order execution Yes
Profiling Yes
Preferred size 262144 (256KiB)
Max size 8388608 (8MiB)
Max queues on device 1
Max events on device 1024
Prefer user sync for interop Yes
Number of P2P devices (AMD) 0
Profiling timer resolution 1ns
Profiling timer offset since Epoch (AMD) 0ns (Thu Jan 1 01:00:00 1970)
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
Thread trace supported (AMD) No
Number of async queues (AMD) 8
Max real-time compute queues (AMD) 8
Max real-time compute units (AMD) 30
printf() buffer size 4194304 (4MiB)
Built-in kernels (n/a)
Device Extensions cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program

NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) AMD Accelerated Parallel Processing
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [AMD]
clCreateContext(NULL, ...) [default] Success [AMD]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name AMD Accelerated Parallel Processing
Device Name gfx1030
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name AMD Accelerated Parallel Processing
Device Name gfx1030
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name AMD Accelerated Parallel Processing
Device Name gfx1030

ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.2.14
ICD loader Profile OpenCL 3.0

 

 

 

0 Likes

hello and good morning to all.
my last message said that I had succeeded in installing openCL on my Debian .

it's true but from the archive (version 21.30) .

from the repository provided in *.deb file by AMD, nothing to do, I can't do it  :

amdgpu-install --opencl=rocr --no-dkms

Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet amdgpu-lib
E: Impossible de trouver le paquet amdgpu-lib32
E: Impossible de trouver le paquet rocm-hip-runtime
E: Impossible de trouver le paquet rocm-opencl-runtime

I don't understand the documentation which, for me, is obscure and badly written.
Can you help me ?

RX 6800 / R9 3900X / Asus Prime X 570 Pro . / Debian Bookworm-sid kernel 5.15.6 (kernel.org)

have you a (or some) command(s) i can try  with success  on my machine ?

why are you replacing the traditionnal archive with a repository ?

goal : to install OpenCL ROCr/ROCm on my machine in order to use blender at its full potential (among other things) and to be able to do Phoronix performance tests (benchs).

thanks .

note : also tested on a ubuntu 20.04.3 LTS virtual machine (virtual box) , same problem . same output .

i think the repository is not ready .

 

0 Likes

good evening to all.
I just upgraded my ubuntu 20.04.3 LTS .
here is my kernel :

Linux dany-VirtualBox 5.11.0-43-generic #47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

I used the following command after installing the *.deb package which put the sources in the /etc/apt/sources.list.d/

amdgpu-install --opencl=rocr --no-dkms

here is what I got.
is it due to the virtual machine ?

Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.2 AMD-APP (3361.0)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback
Platform Host timer resolution 1ns
Platform Extensions function suffix AMD

Platform Name AMD Accelerated Parallel Processing
Number of devices 0

NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) AMD Accelerated Parallel Processing
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)
clCreateContext(NULL, ...) [default] No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No devices found in platform

ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.2.11
ICD loader Profile OpenCL 2.1
NOTE: your OpenCL library only supports OpenCL 2.1,
but some installed platforms support OpenCL 2.2.
Programs using 2.2 features may crash
or behave unexpectedly

 

 

0 Likes

Debian maintainers are working with AMD to solve this:

https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/open-source-amd-linux/1296835-deb...

 

I hope will have working OpenCL in Debian soon!

0 Likes

here is the solution I found so far :

openCL Debian with script  


on the other hand, the solution with AMD sources does not work under debian and badly under ubuntu 20.04.3 LTS.
but maybe it comes from the v.m. (for ubuntu under  virtualbox) ?

0 Likes

@alainbrest29200 

The commands given should work for legacy cards (pre VEGA) it does not work for rx 6xxx cards.

For that to work you should use the amdgpu-install -y --opencl=rocr --headless

But on Debian bullseye or testing/bookworm you'll probably get dkms issues as not being able to configure.

So until a someone comes with a brilliant idea (SPECIALLY LOOKING AT THE AMD devs.) Debian users are stuck while it is the mother/father of ALL Debian derivatives like Ubuntu, LinuxMint etc.

0 Likes
deepdelirum
Adept I

You can install the openCL part when you boot with the old kernel and use -headless to get only the rocR part, what is what you really need. Have a look at my post here about this topic:

https://community.amd.com/t5/drivers-software/install-drivers-21-30-to-get-opencl-rocr-support-on-ub...

0 Likes

Thanks, but I don't have old kernel - Debian 11 is shipped with 5.10, there is no way to have older kernel in this system.

Debian has been released in August 2021, no OpenCL for this system since release.

0 Likes

I guess you need to use a kernel 5.8. anyways. The driver download page here notes: Note: Customers who have upgraded to the latest 5.11 kernel for Ubuntu will need to downgrade to the 5.8 kernel for proper 21.Q3 driver support.

Even if this note is not shown up when you try to download Radeon™ Software for Linux® Driver for Ubuntu 20.04.3 Revision Number 21.30 I learned that it only works with 5.8 during the install process.

 

0 Likes

@deepdelirum 

Your post is about Ubuntu 20.4.2/3 LTS not abt. Debian.

0 Likes

You are right. I just wanted to point out that there was a way to bypass the dkms-error when installing openCL on Ubuntu with newer kernel, so you might be able to do something similar on Debian. The drivers that can be installed via amdgpu-pro-install are only supporting kernel 5.8, no matter if it's Ubuntu or Debian. I hope you can find a solution that works for you.

0 Likes
Bret397458
Journeyman III

Bullseye is now stable and the following used to work

./amdgpu-install --opencl=legacy --headless --no-dkms

using the ubuntu 21.30 drivers.

Bookworm is now sid and installing 21.30 drivers causes the desktop environment to crash on boot. 

I can't find a place to download the new drivers, 21.40, to try them.  There is only the 14kb file at: https://www.amd.com/en/support/graphics/radeon-500-series/radeon-rx-500-series/radeon-rx-580.

Attempting to use this file in the following way causes failures:

 

Spoiler

amdgpu-install --opencl=legacy --no-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package opencl-orca-amdgpu-pro-icd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package amdgpu-lib
E: Unable to locate package amdgpu-lib32
E: Unable to locate package rocm-hip-runtime
E: Unable to locate package clinfo-amdgpu-pro
E: Package 'opencl-orca-amdgpu-pro-icd' has no installation candidate

amdgpu-install --usecase=opencl --no-dkms --no-32
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package rocm-opencl-runtime

amdgpu-install --usecase=rocm --no-dkms --no-32
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package rocm-dev

Is there a place where I can download the actual driver so that I can try to install them???

 

0 Likes

hi , bret397458 .

you can use these two scripts :

for installation :

firefox https://drive.google.com/file/d/1yJA2dej3A2Vda8cy1GlaAWXKkFqlXrl4/view?usp=sharing

to uninstall :

firefox https://drive.google.com/file/d/1tElemvFCCjWh8S1nXlgBhbQY_Y0QPaRT/view?usp=sharing

it will automatically download , decompress and install the 21.30 OpenCL drivers archive .

the second link will fully uninstall OpenCL from being installed with the previous link .

use "clinfo" to control the installation process once done this .

 

0 Likes

Alain,

Please reread my post.  The 21.30 drivers don't work on bookworm/gnome 41.  The DE crashes on startup.  I'm looking for the 21.40 drivers.  Thanks!

0 Likes

Hello Bret397458.

on my configuration (bookworm/sid), I have very few problems.
everything seems to work fine.
I have minor screen refreshment problems.
I have to restart the desktop.
but on the whole everything is fine.
I don't have any desktop crashes at startup.
the solution I submitted to you works well for me.
I thought it would be the same for you.
I didn't manage to do it, sorry.

I wish you good luck in your research and thank you for your participation.
It brings me some thoughts that I will dig up soon.
while waiting for the solution.

Happy Christmas and New Year's Eve.

with kind regards .

 

Translated with www.DeepL.com/Translator (free version)

0 Likes

Alain,

You have it working on bookworm, interesting.  My experience was that after upgrading my bullseye to bookworm my pc would crash on start.  I didn't know what the problem was so I reformatted and reinstalled bookworm.  Everything was fine and then I installed 21.30 opencl and it crashed on boot but when i purged all amd* then it booted fine.  I tried multiple times so I just assumed that it was borked for bookworm.  I will it your way exactly when I get back home for the holidays.  Thanks, and Merry Christmas and a Happy New Year to you as well!!

-Bret

0 Likes

I did not understand.
What do you mean?
what did you do?
"but when i purged all amd* then it booted fine"

I would have tried to help you but this is not the place to do it.
I wonder if your desk is not a little too heavy for your configuration.
what version of gnome do you have?
Upgrading to higher versions of gnome is sometimes not done without some bumps and problems.
if I'm not mistaken, I think that my move to gnome 41 brought me some problems.
It took me a good month to understand how to use it.
I was completely confused.

good luck.

late, merry christmas.
and happy new year .

friendly
alain

 

Translated with www.DeepL.com/Translator (free version)

 

0 Likes

Alain Bon Année,

Do I just run the script or do I have to give some parameters?

For my RX 580 I have it working on Debian testing/bookworm as it doesn't need the amdgpu-dkms.

Installed it amdgpu-pro-21.30 driver with just amdgpu-install --opencl=legacy --headless --no-dkms which is fine for the RX580.

Bur I also have a RX 6600 XT and that one needs --opencl=rocr and in that case --no-dkms doesn't work as it faults on amdgpu-dkms and amdgpu-core. It would be nice to get them both working.

If I have to rollback to Debian buster for this to get working so be it.

Thanks for the scripts anyway.

0 Likes

Hi Roesjka
happy new year to you too .

here is my tuto : openCL sur AMD . 

the script I mention in my tuto is functional for RX 6000 .

scripts git RX 6000 

the scripts I describe for RX500 is working but with old versions of debian . until debian 10 / 11 .

RX 500 OpenCL Debian 10 / 11  

 

friendly .

if it could help you ...

For the moment, the amd repository does not work at all with debian.

or else, I am mistaken and I am in error.
but not sure.
yet I appreciate a lot the participation of the community ...
really nice.

Thanks a lot.

 

nb: Do I just run the script or do I have to give some parameters?

no , just take back the two scripts and run each other like you want .

normally , with no parameters .

 

 

0 Likes