cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

alainbrest29200
Adept II

Re: openCL linux debian bullseye / sid

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
ableeker
Adept II

Re: openCL linux debian bullseye / sid

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
alainbrest29200
Adept II

Re: openCL linux debian bullseye / sid

thank you ableeker .

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

 

0 Likes
ableeker
Adept II

Re: openCL linux debian bullseye / sid

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
pioruns
Adept II

Re: openCL linux debian bullseye / sid

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

0 Likes
bradx954
Adept I

Re: openCL linux debian bullseye / sid

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
alainbrest29200
Adept II

Re: openCL linux debian bullseye / sid

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
alainbrest29200
Adept II

Re: openCL linux debian bullseye / sid

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
alainbrest29200
Adept II

Re: openCL linux debian bullseye / sid

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
alainbrest29200
Adept II

Re: openCL linux debian bullseye / sid

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