[SOLVED] Need help with installing radeon OpenCL

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
ifritdiezel
Level 1
Level 1
Posts: 14
Joined: Fri Jun 12, 2020 3:25 pm

[SOLVED] Need help with installing radeon OpenCL

Post by ifritdiezel »

I followed a bunch of guides online but nothing seems to work. amdgpu-pro installs successfully, but won't install OpenCL. clinfo reports 0 platforms.

inxi:

Code: Select all

System:    Kernel: 5.4.0-70-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:   Type: Desktop Mobo: Micro-Star model: B450M GAMING PLUS (MS-7B87) v: 1.0 serial: <filter> UEFI: American Megatrends 
           v: 1.80 date: 07/25/2019 
CPU:       Topology: 6-Core model: AMD Ryzen 5 3500X bits: 64 type: MCP arch: Zen L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 43199 
           Speed: 3611 MHz min/max: N/A Core speeds (MHz): 1: 3611 2: 3399 3: 3265 4: 3697 5: 3649 6: 3488 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] 
           vendor: Sapphire Limited Nitro+ driver: amdgpu v: kernel bus ID: 29:00.0 chip ID: 1002:67df 
           Display: x11 server: X.Org 1.20.9 driver: amdgpu,ati unloaded: fbdev,modesetting,vesa resolution: 1280x1024~60Hz 
           OpenGL: renderer: Radeon RX 580 Series (POLARIS10 DRM 3.35.0 5.4.0-70-generic LLVM 11.0.0) v: 4.6 Mesa 21.0.1 
           direct render: Yes 
Info:      Processes: 325 Uptime: 20h 45m Memory: 15.65 GiB used: 4.81 GiB (30.7%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.3.0 alt: 9 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Need help with installing radeon OpenCL

Post by roblm »

Use these commands and post the output:

Code: Select all

grep libglx /var/log/Xorg.0.log 
ls /opt/amdgpu-pro/lib/x86_64-linux-gnu/
User avatar
ifritdiezel
Level 1
Level 1
Posts: 14
Joined: Fri Jun 12, 2020 3:25 pm

Re: Need help with installing radeon OpenCL

Post by ifritdiezel »

Code: Select all

[     4.885] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so

amdvlk64.so  libEGL.so.1  libglapi.so.1  libGLESv2.so.2  libGL.so.1
libEGL.so    libglapi.so  libGLESv2.so   libGL.so        libGL.so.1.2
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Need help with installing radeon OpenCL

Post by roblm »

The AMDGPU-Pro installation failed. You should see this output after using the first command:

Code: Select all

Loading /opt/amdgpu-pro/lib/xorg/modules/extensions/libglx.so
The output of the second command does not list any OpenCl files were installed, such as libOpenCL.so.1.

What command did you use to install the AMDGPU-Pro driver?

What package version did you use, such as Radeon Software for Linux version 20.50.
Last edited by roblm on Sun Apr 04, 2021 11:14 am, edited 1 time in total.
User avatar
ifritdiezel
Level 1
Level 1
Posts: 14
Joined: Fri Jun 12, 2020 3:25 pm

Re: Need help with installing radeon OpenCL

Post by ifritdiezel »

I used the package from the AMD website
Radeon™ Software for Linux® Driver for Ubuntu 20.04.1 and 20.04.2, revision number 20.50
Installed by executing amdgpu-pro-install as root
User avatar
ifritdiezel
Level 1
Level 1
Posts: 14
Joined: Fri Jun 12, 2020 3:25 pm

Re: Need help with installing radeon OpenCL

Post by ifritdiezel »

I didn't restart before running the first command after reinstalling, sorry

[ 5.657] (II) Loading /opt/amdgpu-pro/lib/xorg/modules/extensions/libglx.so
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Need help with installing radeon OpenCL

Post by roblm »

ifritdiezel wrote: Installed by executing amdgpu-pro-install as root
That command won’t install the OpenCL libraries. Use this: ./amdgpu-pro-install --opencl=legacy


EDITED: remove the current installation first: amdgpu-pro-uninstall
User avatar
ifritdiezel
Level 1
Level 1
Posts: 14
Joined: Fri Jun 12, 2020 3:25 pm

Re: Need help with installing radeon OpenCL

Post by ifritdiezel »

Thanks, it worked!
Locked

Return to “Graphics Cards & Monitors”