cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

aicastell
Journeyman III

clinfo gets hanged

Hello.

Just installed amdgpu-pro-20.45-1188099-ubuntu-20.04 on a fresh Ubuntu 20.04.2 LTS install, with a MSI AMD RADEON RX 5700 XT connected, using this options:

./amdgpu-pro-install --opencl=legacy,pal --no-32 -y

When I execute /opt/amdgpu-pro/bin/clinfo it simply hangs

 

# /opt/amdgpu-pro/bin/clinfo
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.0 AMD-APP (3188.4)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_amd_event_callback


Platform Name: AMD Accelerated Parallel Processing
Number of devices: 1
Device Type: CL_DEVICE_TYPE_GPU
Vendor ID: 1002h
Board name: AMD Radeon RX 5700 XT
Device Topology: PCI[ B#11, D#0, F#0 ]
Max compute units: 20
Max work items dimensions: 3
Max work items[0]: 1024
Max work items[1]: 1024
Max work items[2]: 1024
Max work group size: 256
Preferred vector width char: 4
Preferred vector width short: 2
Preferred vector width int: 1
Preferred vector width long: 1
Preferred vector width float: 1
Preferred vector width double: 1
Native vector width char: 4
Native vector width short: 2
Native vector width int: 1
Native vector width long: 1
Native vector width float: 1
Native vector width double: 1
Max clock frequency: 2100Mhz
Address bits: 64
Max memory allocation: 7287183769
Image support: Yes
Max number of images read arguments: 128
Max number of images write arguments: 8
Max image 2D width: 16384
Max image 2D height: 16384
Max image 3D width: 2048
Max image 3D height: 2048
Max image 3D depth: 2048
Max samplers within kernel: 29471
Max size of kernel argument: 1024
Alignment (bits) of base address: 1024
Minimum alignment (bytes) for any datatype: 128
Single precision floating point capability
Denorms: Yes
Quiet NaNs: Yes
Round to nearest even: Yes
Round to zero: Yes
Round to +ve and infinity: Yes
IEEE754-2008 fused multiply-add: Yes
Cache type: Read/Write
Cache line size: 64
Cache size: 16384
Global memory size: 8573157376
Constant buffer size: 7287183769
Max number of constant args: 8
Local memory type: Scratchpad
Local memory size: 65536
Max pipe arguments: 16
Max pipe active reservations: 16
Max pipe packet size: 2992216473
Max global variable size: 7287183769
Max global variable preferred total size: 8573157376
Max read/write image args: 64
Max on device events: 1024
Queue on device max size: 8388608
Max on device queues: 1
Queue on device preferred size: 262144
SVM capabilities:
Coarse grain buffer: Yes
Fine grain buffer: Yes
Fine grain system: No
Atomics: No
Preferred platform atomic alignment: 0
Preferred global atomic alignment: 0
Preferred local atomic alignment: 0

[HERE IS HANGED]

Stracing shows it hangs accesing kernel module:

madvise(0x7f975b7ec000, 4096, MADV_DONTFORK) = 0
ioctl(6, AMDKFD_IOC_ALLOC_MEMORY_OF_GPU, 0x7fffa1b5ed60) = 0
ioctl(6, AMDKFD_IOC_MAP_MEMORY_TO_GPU, 0x7fffa1b5ed90) = 0

And never returns to shell until pressing Ctrl+C.

I also tryied updating amdgpu firmware with latest available:

git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

 But it doesn't help.

I collected some logs for debugging this issue. Please help with this is appreciated. Tnx!

 

 

 

 

0 Likes
1 Reply
rbo
Journeyman III

Exact same problem with RX6800. Running ubuntu 20.04.2, loaded the latest .5.10.15 kernel (5.10.15-051015-generic)

Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.0 AMD-APP (3188.4)
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 2
Device Name gfx1030
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 2.0
Driver Version 3188.4 (HSA1.1,LC)
Device OpenCL C Version OpenCL C 2.0
Device Type GPU
Device Board Name (AMD) Device 73bf
Device Topology (AMD) PCI-E, 0d: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

Strace stop at :

get_mempolicy(NULL, NULL, 0, NULL, 0) = 0
madvise(0x7fc9eaafc000, 4096, MADV_DONTFORK) = 0
ioctl(7, AMDKFD_IOC_ALLOC_MEMORY_OF_GPU, 0x7ffd74370150) = 0
ioctl(7, AMDKFD_IOC_MAP_MEMORY_TO_GPU, 0x7ffd74370180) = 0
--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} ---
+++ killed by SIGINT +++

0 Likes