6700XT OpenCL and dual monitor problems...

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

6700XT OpenCL and dual monitor problems...

Post by warriorofthelight »

Hey there,

struggling for a half day now to get a Sapphire Pulse 6700XT working in my system. I run into all kinds of trouble...

What I need in the end is 2 things: a working OpenCL device, and dual monitor support. Both were no issue with my RX570 so far.

I run Mint 21.1. On kernel 5.15 it seems that the amdgpu drivers do not work (which are needed for the opencl package). There were all sort of problems (unresolved dependencies, something about dkms etc....), none of which indicated the kernel version. So I googled around and it seems that the amdgpu version 22.40 only runs on Ubuntu 22.04 HWE version - which I never heard before, but apparently that only means it's using kernel 5.19 instead of 5.15. So I upgraded to 5.19 and tried the whole install again. Now after booting 5.19 I only have one monitor (the one connected on HDMI) instead of both... and no idea what I could do. I guess this just means there's an issue. Both monitors work fine. Actually when I boot to BIOS, I get the BIOS on the monitor connected to DP. So it is working, and both were working fine on kernel 5.15. (just confirmed by booting 5.15 kernel... both monitors are working).

Any ideas?

Code: Select all

$ inxi -v1
System:
  Host: werner-mint Kernel: 5.19.0-41-generic x86_64 bits: 64
    Desktop: Cinnamon 5.6.8 Distro: Linux Mint 21.1 Vera
CPU:
  Info: 8-core AMD Ryzen 7 5700G with Radeon Graphics [MT MCP] speed (MHz):
    avg: 2010 min/max: 1400/4672
Graphics:
  Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT / 6800M] driver: amdgpu
    v: 6.0.5
  Device-2: Trust USB Camera type: USB driver: snd-usb-audio,uvcvideo
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu
    resolution: 2560x1440~60Hz
  OpenGL: renderer: AMD Radeon RX 6700 XT (navi22 LLVM 15.0.7 DRM 3.51
  5.19.0-41-generic)
    v: 4.6 Mesa 23.1.0-devel
Drives:
  Local Storage: total: 1.6 TiB used: 330.8 GiB (20.2%)
Info:
  Processes: 384 Uptime: 21m Memory: 31.2 GiB used: 2.89 GiB (9.3%)
  Shell: Bash inxi: 3.3.13

Last edited by LockBot on Sun Nov 12, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31347
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: 6700XT OpenCL and dual monitor problems...

Post by SMG »

warriorofthelight wrote: Fri May 12, 2023 4:54 pmI run Mint 21.1. On kernel 5.15 it seems that the amdgpu drivers do not work (which are needed for the opencl package).
Which opencl package are you using (or wanting to use)? Just the one from the AMD drivers from their website or a different one?
warriorofthelight wrote: Fri May 12, 2023 4:54 pm Now after booting 5.19 I only have one monitor (the one connected on HDMI) instead of both... and no idea what I could do.
It would be helpful if you supplied the output of

Code: Select all

inxi -Fxxxrz
You provided such minimal data that it is hard to determine what the issue might be.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
warriorofthelight
Level 3
Level 3
Posts: 100
Joined: Wed Jan 20, 2016 6:04 am

Re: 6700XT OpenCL and dual monitor problems...

Post by warriorofthelight »

SMG wrote: Wed May 17, 2023 7:50 pm
warriorofthelight wrote: Fri May 12, 2023 4:54 pmI run Mint 21.1. On kernel 5.15 it seems that the amdgpu drivers do not work (which are needed for the opencl package).
Which opencl package are you using (or wanting to use)? Just the one from the AMD drivers from their website or a different one?
warriorofthelight wrote: Fri May 12, 2023 4:54 pm Now after booting 5.19 I only have one monitor (the one connected on HDMI) instead of both... and no idea what I could do.
It would be helpful if you supplied the output of

Code: Select all

inxi -Fxxxrz
You provided such minimal data that it is hard to determine what the issue might be.
Hey there, thanks for your reply. Didn't know what info is helpful... here's the requested one.
My guess is, there's a real issue with dual monitors for kernel 5.19 , but I don't know which systems are really affected (but googling brings up a lot of comments), or if the issue is fixed already. And for 5.15 the amd driver doesn't work because it expects this "HWE" kernel which seems to be 5.19 ... I haven't tried the older AMD driver (for Ubuntu 20?!), where the HWE kernel was 5.15. Maybe that's an option? If I understand correctly (and I certainly may not) AMD only supports HWE kernels for Ubuntu, which seem to be NOT the ones Mint is shipping by default, but the ones Ubuntu releases in their not-longterm releases... which I totally don't understand. But anyway.

I'm trying the opencl driver from AMD. No issues with it for my RX570.

Code: Select all

werner@werner-mint:~$ inxi -Fxxxrz
System:
  Kernel: 5.19.0-43-generic x86_64 bits: 64 compiler: N/A
    Desktop: Cinnamon 5.6.8 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop System: Gigabyte product: B550M DS3H v: -CF
    serial: <superuser required>
  Mobo: Gigabyte model: B550M DS3H v: x.x serial: <superuser required>
    UEFI: American Megatrends LLC. v: F15 date: 07/29/2022
CPU:
  Info: 8-core model: AMD Ryzen 7 5700G with Radeon Graphics bits: 64
    type: MT MCP smt: enabled arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB
    L3: 16 MiB
  Speed (MHz): avg: 2015 high: 2992 min/max: 1400/4672 boost: enabled
    cores: 1: 2992 2: 1400 3: 2398 4: 1400 5: 2394 6: 2395 7: 1400 8: 1700
    9: 1400 10: 1400 11: 2394 12: 2395 13: 2395 14: 2393 15: 1400 16: 2395
    bogomips: 121367
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT / 6800M] vendor: Sapphire
    driver: amdgpu v: 6.0.5 pcie: speed: 16 GT/s lanes: 16 ports:
    active: DP-3,HDMI-A-1 empty: DP-1,DP-2 bus-ID: 03:00.0 chip-ID: 1002:73df
    class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1185x381mm (46.7x15.0")
    s-diag: 1245mm (49")
  Monitor-1: DisplayPort-2 mapped: DP-3 pos: right model: Dell U2413
    serial: <filter> res: 1920x1200 hz: 60 dpi: 94 size: 518x324mm (20.4x12.8")
    diag: 611mm (24.1") modes: max: 1920x1200 min: 720x400
  Monitor-2: HDMI-A-0 mapped: HDMI-A-1 pos: primary,left
    model: Idek Iiyama PL2792Q serial: <filter> res: 2560x1440 hz: 60 dpi: 109
    size: 597x336mm (23.5x13.2") diag: 685mm (27") modes: max: 2560x1440
    min: 640x480
  OpenGL: renderer: AMD Radeon RX 6700 XT (navi22 LLVM 15.0.7 DRM 3.51
  5.19.0-43-generic)
    v: 4.6 Mesa 23.1.0-devel direct render: Yes
Audio:
  Device-1: AMD Navi 21 HDMI Audio [Radeon RX 6800/6800 XT / 6900 XT]
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 03:00.1 chip-ID: 1002:ab28 class-ID: 0403
  Device-2: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 07:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-3: AMD Family 17h HD Audio vendor: Gigabyte driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 07:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Device-4: Audient iD4 type: USB driver: hid-generic,snd-usb-audio,usbhid
    bus-ID: 3-1:2 chip-ID: 2708:0009 class-ID: fe01
  Sound Server-1: ALSA v: k5.19.0-43-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: e000 bus-ID: 06:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 1.6 TiB used: 353.94 GiB (21.6%)
  ID-1: /dev/sda vendor: Samsung model: SSD 840 PRO Series size: 238.47 GiB
    speed: 6.0 Gb/s type: SSD serial: <filter> rev: 5B0Q scheme: GPT
  ID-2: /dev/sdb vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB
    speed: 6.0 Gb/s type: SSD serial: <filter> rev: 1B6Q scheme: MBR
  ID-3: /dev/sdc vendor: HGST (Hitachi) model: HTE541010A9E680
    size: 931.51 GiB speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: A560 scheme: MBR
Partition:
  ID-1: / size: 233.18 GiB used: 37.66 GiB (16.1%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat
    dev: /dev/sda1
  ID-3: /home size: 457.38 GiB used: 195.42 GiB (42.7%) fs: ext4
    dev: /dev/sdb
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 1024 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 40.0 C mobo: 30.0 C gpu: amdgpu temp: 47.0 C
    mem: 42.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Repos:
  Packages: 3282 apt: 3265 flatpak: 17
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/amdgpu-proprietary.list
  Active apt repos in: /etc/apt/sources.list.d/amdgpu.list
    1: deb https://repo.radeon.com/amdgpu/5.5/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://linux-mint.froonix.org vera main upstream import backport
    2: deb http://ubuntu.lagis.at/ubuntu jammy main restricted universe multiverse
    3: deb http://ubuntu.lagis.at/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://ubuntu.lagis.at/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/rocm.list
    1: deb [arch=amd64] https://repo.radeon.com/rocm/apt/5.5 jammy main
  No active apt repos in: /etc/apt/sources.list.d/signal-xenial.list
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
    1: deb [signed-by=/usr/share/keyrings/teamviewer-keyring.gpg] https://linux.teamviewer.com/deb stable main
Info:
  Processes: 399 Uptime: 34m wakeups: 0 Memory: 31.2 GiB
  used: 3.02 GiB (9.7%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.3.0 alt: 11/12/9 Shell: Bash v: 5.1.16 running-in: terminator
  inxi: 3.3.13
werner@werner-mint:~$ 

User avatar
SMG
Level 25
Level 25
Posts: 31347
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: 6700XT OpenCL and dual monitor problems...

Post by SMG »

warriorofthelight wrote: Thu Jun 01, 2023 11:57 amAnd for 5.15 the amd driver doesn't work because it expects this "HWE" kernel which seems to be 5.19 ... I haven't tried the older AMD driver (for Ubuntu 20?!), where the HWE kernel was 5.15. Maybe that's an option? If I understand correctly (and I certainly may not) AMD only supports HWE kernels for Ubuntu, which seem to be NOT the ones Mint is shipping by default, but the ones Ubuntu releases in their not-longterm releases... which I totally don't understand. But anyway.
AMD provides the code for the AMD graphics drivers in all the kernels. There is nothing special or different about HWE kernels with respect to AMD graphics drivers.

As AMD makes improvements and changes to the graphics driver, they release code for newer drivers to the newest available kernels so it is possible that a newer kernel may have a newer graphics driver in it. Whether the newer kernel has a newer driver depends on when AMD released the newer driver to the kernel team.

The 5.19 kernel does have a newer amdgpu driver than the 5.15 kernel.
warriorofthelight wrote: Thu Jun 01, 2023 11:57 amI'm trying the opencl driver from AMD. No issues with it for my RX570.
That means you installed the AMD driver from the AMD website. When someone does that, they must make sure the version they are downloading is appropriate for the version of Linux Mint (Ubuntu base) they have installed. AMD does release a different version of the driver for each new Ubuntu base.

The AMD Linux Drivers lists two versions for Ubuntu x86. One is for Ubuntu 20.04 (which is the base for LM20 versions) and the other is for Ubuntu 22.04 (which is the base for LM21 versions). You should be using the second option because you are using Linux Mint 21.1. This is not an issue of HWE or not HWE. This is an issue of using the correct driver for the Ubuntu base you have.

Do you still need help or is your problem now resolved? It looks like the driver is installed and loaded correctly.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
warriorofthelight
Level 3
Level 3
Posts: 100
Joined: Wed Jan 20, 2016 6:04 am

Re: 6700XT OpenCL and dual monitor problems...

Post by warriorofthelight »

Yes I installed the drivers, and I know which ones I need... I used OpenCL all the time with the old RX570, for years now. I know the graphic drivers are part of the kernel, I'm not trying to install those. I only use the opencl-portion of the amdgpu drives, cause there's no other way to get that... at least, not that I know.

However, there is no opencl device showing up, even though it should work....

Code: Select all

werner@werner-mint:~$ clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3558.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, ...)  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
werner@werner-mint:~$ 
So I thought I try the newer driver that runs on kernel 5.19, but then the monitor issue comes up - and I don't know if OpenCl was working, I should try that again. But with no dual monitor it makes no sense....
User avatar
SMG
Level 25
Level 25
Posts: 31347
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: 6700XT OpenCL and dual monitor problems...

Post by SMG »

warriorofthelight wrote: Fri Jun 02, 2023 11:49 am Yes I installed the drivers, and I know which ones I need... I used OpenCL all the time with the old RX570, for years now. I know the graphic drivers are part of the kernel, I'm not trying to install those. I only use the opencl-portion of the amdgpu drives, cause there's no other way to get that... at least, not that I know.
Your data indicates your system is not using the drivers from the kernel (which is what I would expect to happen). You are using the drivers and Mesa from the AMD website.

Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT / 6800M] vendor: Sapphire
driver: amdgpu v: 6.0.5 pcie: speed: 16 GT/s lanes: 16 ports:
active: DP-3,HDMI-A-1 empty: DP-1,DP-2 bus-ID: 03:00.0 chip-ID: 1002:73df
class-ID: 0300
OpenGL: renderer: AMD Radeon RX 6700 XT (navi22 LLVM 15.0.7 DRM 3.51
5.19.0-43-generic)
v: 4.6 Mesa 23.1.0-devel direct render: Yes
warriorofthelight wrote: Fri Jun 02, 2023 11:49 amHowever, there is no opencl device showing up, even though it should work....
In the past there were many issues with the OpenCL part of the AMD website driver, but it is my understanding the current version on the website should work.

This person in April mentioned a mesa-opencl-icd package, but didn't really give any details so I don't know if that package would help you because they did not specifically mention using the driver from the AMD website.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
warriorofthelight
Level 3
Level 3
Posts: 100
Joined: Wed Jan 20, 2016 6:04 am

Re: 6700XT OpenCL and dual monitor problems...

Post by warriorofthelight »

Ok so I tried again. Deinstalled the complete amdgpu package with amdgpu-uninstall. Then downloaded the amdgpu-install_5.4.50405-1_all.deb package for Ubuntu 22.04.02 (not .05... not sure which one I need). Installed the package once again using

Code: Select all

$ amdgpu-install --opencl=rocr --no-dkms
to exclude the graphics driver. Not sure this is really working, but it installed without errors. Again, there is no OpenCL device showing up, even though the 6700-series is mentioned in the release notes.

No idea what I can do here.

Code: Select all

$ clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3513.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, ...)  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
If it's any help, here's the fresh inxi output once again. Apparantly I run 5.19 now... which I didn't realize. Monitors are both working, maybe the latest update (from 5.19.41 to 5.19.43) fixed it? Anyway. Still no Opencl...

Code: Select all

$ inxi -Fxxxrz
System:
  Kernel: 5.19.0-43-generic x86_64 bits: 64 compiler: N/A
    Desktop: Cinnamon 5.6.8 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop System: Gigabyte product: B550M DS3H v: -CF
    serial: <superuser required>
  Mobo: Gigabyte model: B550M DS3H v: x.x serial: <superuser required>
    UEFI: American Megatrends LLC. v: F15 date: 07/29/2022
CPU:
  Info: 8-core model: AMD Ryzen 7 5700G with Radeon Graphics bits: 64
    type: MT MCP smt: enabled arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB
    L3: 16 MiB
  Speed (MHz): avg: 1548 high: 3800 min/max: 1400/4672 boost: enabled
    cores: 1: 1400 2: 1397 3: 1400 4: 3800 5: 1396 6: 1397 7: 1400 8: 1400
    9: 1400 10: 1400 11: 1396 12: 1400 13: 1400 14: 1395 15: 1397 16: 1400
    bogomips: 121369
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT / 6800M] vendor: Sapphire
    driver: amdgpu v: 6.0.5 pcie: speed: 16 GT/s lanes: 16 ports:
    active: DP-3,HDMI-A-1 empty: DP-1,DP-2 bus-ID: 03:00.0 chip-ID: 1002:73df
    class-ID: 0300
  Device-2: Trust USB Camera type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 1-5.2:6 chip-ID: 145f:0203 class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1185x381mm (46.7x15.0")
    s-diag: 1245mm (49")
  Monitor-1: DisplayPort-2 mapped: DP-3 pos: right model: Dell U2413
    serial: <filter> res: 1920x1200 hz: 60 dpi: 94 size: 518x324mm (20.4x12.8")
    diag: 611mm (24.1") modes: max: 1920x1200 min: 720x400
  Monitor-2: HDMI-A-0 mapped: HDMI-A-1 pos: primary,left
    model: Idek Iiyama PL2792Q serial: <filter> res: 2560x1440 hz: 60 dpi: 109
    size: 597x336mm (23.5x13.2") diag: 685mm (27") modes: max: 2560x1440
    min: 640x480
  OpenGL: renderer: AMD Radeon RX 6700 XT (navi22 LLVM 15.0.3 DRM 3.51
  5.19.0-43-generic)
    v: 4.6 Mesa 22.3.0-devel direct render: Yes
Audio:
  Device-1: AMD Navi 21 HDMI Audio [Radeon RX 6800/6800 XT / 6900 XT]
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 03:00.1 chip-ID: 1002:ab28 class-ID: 0403
  Device-2: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 07:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-3: AMD Family 17h HD Audio vendor: Gigabyte driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 07:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Device-4: Trust USB Camera type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 1-5.2:6 chip-ID: 145f:0203 class-ID: 0102 serial: <filter>
  Device-5: Audient iD4 type: USB driver: hid-generic,snd-usb-audio,usbhid
    bus-ID: 3-1:2 chip-ID: 2708:0009 class-ID: fe01
  Sound Server-1: ALSA v: k5.19.0-43-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: e000 bus-ID: 06:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 1.6 TiB used: 357.35 GiB (21.8%)
  ID-1: /dev/sda vendor: Samsung model: SSD 840 PRO Series size: 238.47 GiB
    speed: 6.0 Gb/s type: SSD serial: <filter> rev: 5B0Q scheme: GPT
  ID-2: /dev/sdb vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB
    speed: 6.0 Gb/s type: SSD serial: <filter> rev: 1B6Q scheme: MBR
  ID-3: /dev/sdc vendor: HGST (Hitachi) model: HTE541010A9E680
    size: 931.51 GiB speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: A560 temp: 30 C scheme: MBR
Partition:
  ID-1: / size: 233.18 GiB used: 38.01 GiB (16.3%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat
    dev: /dev/sda1
  ID-3: /home size: 457.38 GiB used: 198.48 GiB (43.4%) fs: ext4
    dev: /dev/sdb
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 40.0 C mobo: 29.0 C gpu: amdgpu temp: 47.0 C
    mem: 42.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Repos:
  Packages: 3279 apt: 3262 flatpak: 17
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/amdgpu-proprietary.list
  Active apt repos in: /etc/apt/sources.list.d/amdgpu.list
    1: deb https://repo.radeon.com/amdgpu/5.4.5/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://linux-mint.froonix.org vera main upstream import backport
    2: deb http://ubuntu.lagis.at/ubuntu jammy main restricted universe multiverse
    3: deb http://ubuntu.lagis.at/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://ubuntu.lagis.at/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/rocm.list
    1: deb [arch=amd64] https://repo.radeon.com/rocm/apt/5.4.5 jammy main
  No active apt repos in: /etc/apt/sources.list.d/signal-xenial.list
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
    1: deb [signed-by=/usr/share/keyrings/teamviewer-keyring.gpg] https://linux.teamviewer.com/deb stable main
Info:
  Processes: 388 Uptime: 1h 19m wakeups: 0 Memory: 31.2 GiB
  used: 2.75 GiB (8.8%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.3.0 alt: 11/12/9 Shell: Bash v: 5.1.16 running-in: terminator
  inxi: 3.3.13

User avatar
SMG
Level 25
Level 25
Posts: 31347
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: 6700XT OpenCL and dual monitor problems...

Post by SMG »

warriorofthelight wrote: Sat Jun 03, 2023 3:25 pm Ok so I tried again. Deinstalled the complete amdgpu package with amdgpu-uninstall. Then downloaded the amdgpu-install_5.4.50405-1_all.deb package for Ubuntu 22.04.02 (not .05... not sure which one I need). Installed the package once again using

Code: Select all

$ amdgpu-install --opencl=rocr --no-dkms
to exclude the graphics driver.
I do not understand what you are attempting to accomplish with the command you used. Why would you not want dkms?

Here is the AMD troubleshooting for OpenCL (Optional Component). Even in the earlier pages I do not see a reference to excluding dkms.

What instructions are you using? The ones I just mentioned are linked from the AMD driver page.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: 6700XT OpenCL and dual monitor problems...

Post by roblm »

SMG wrote: Sat Jun 03, 2023 4:07 pm
warriorofthelight wrote: Sat Jun 03, 2023 3:25 pm Ok so I tried again. Deinstalled the complete amdgpu package with amdgpu-uninstall. Then downloaded the amdgpu-install_5.4.50405-1_all.deb package for Ubuntu 22.04.02 (not .05... not sure which one I need). Installed the package once again using

Code: Select all

$ amdgpu-install --opencl=rocr --no-dkms
to exclude the graphics driver.
I do not understand what you are attempting to accomplish with the command you used. Why would you not want dkms?
Here's where the --no-dkms option comes from. After installing AMD's installer package, if you use the command amdgpu-installer --help

Code: Select all

Options:
  -h|--help                Display this help message
  --rocmrelease=           Install a specific ROCm release. By default only
                           one release of ROCm can be installed. Using this
                           option will allow installation of multiple releases.
                           Note: when used during uninstall, the specific rocm
                                 release will be removed. Use --rocmrelease=all
                                 to uninstall all rocm releases.
  --dryrun                 Print list of commands to run and exit
  --pro                    (DEPRECATED) Install legacy OpenGL, pro Vulkan, and
                           open source multimedia. This is equivalent to:
                           amdgpu-install --usecase=workstation --vulkan=pro
  --usecase=               Install a set of libraries for a specific use case
  --list-usecase           Show all available usecases and descriptions
  --opencl=                Install a specific OpenCL implementation. This
                           option implies the addition of the opencl usecase.
                           Available implementations:
                           rocr        (ROCr/KFD based OpenCL)
                           legacy      (Legacy OpenCL)
  --opengl=                Install a specific OpenGL implementation. This
                           option implies the addition of the graphics usecase.
                           Available implementations:
                           mesa        (Open source Mesa 3D)
                           oglp        (Cloud/Other use, Ubuntu 20.04 only)
  --vulkan=                Install a specific vulkan implementation
                           Available implementations:
                           amdvlk      (AMD open source implementation)
                           pro         (AMD closed source implementation)
  --no-dkms                Do not install dkms and use built-in kernel driver
  --no-32                  Do not install 32 bit graphics runtime support
  --accept-eula            Accept EULA for this run only (for non-free install)
                           Note: only use this option if you accept the EULA
  --uninstall              Uninstall the graphics driver

  Options --opencl/--vulkan/--usecase can be used together, e.g.:
  amdgpu-install --usecase=graphics --vulkan=amdvlk --opencl=rocr

  Multiple implementations can be selected if comma separated, e.g.:
  amdgpu-install --usecase=graphics,opencl --opencl=rocr,legacy --vulkan=amdvlk,pro

So by using the --no-dkms option, these 5 AMD kernel modules should not be listed when using this command:

Code: Select all

ls /lib/modules/`uname -r`/updates/dkms

amddrm_ttm_helper.ko  amdgpu.ko  amdkcl.ko  amd-sched.ko  amdttm.ko
I don't know what the function of each kernel module is but perhaps amdkcl.ko is needed for OpenCL to work.

I suggest re-installing the driver and omitting the --no-dkms option.

If that doesn't work, then you could try installing the driver with the additional Pro components:

Code: Select all

amdgpu-install --usecase=workstation --opencl=rocr
User avatar
warriorofthelight
Level 3
Level 3
Posts: 100
Joined: Wed Jan 20, 2016 6:04 am

Re: 6700XT OpenCL and dual monitor problems...

Post by warriorofthelight »

SMG wrote: Sat Jun 03, 2023 4:07 pm
warriorofthelight wrote: Sat Jun 03, 2023 3:25 pm Ok so I tried again. Deinstalled the complete amdgpu package with amdgpu-uninstall. Then downloaded the amdgpu-install_5.4.50405-1_all.deb package for Ubuntu 22.04.02 (not .05... not sure which one I need). Installed the package once again using

Code: Select all

$ amdgpu-install --opencl=rocr --no-dkms
to exclude the graphics driver.
I do not understand what you are attempting to accomplish with the command you used. Why would you not want dkms?

Here is the AMD troubleshooting for OpenCL (Optional Component). Even in the earlier pages I do not see a reference to excluding dkms.

What instructions are you using? The ones I just mentioned are linked from the AMD driver page.
I follow the AMD instructions, just tried the --no-dkms option once, just in case.

In earlier versions of amdgpu, iirc, installing OpenCL alone would by default not include the graphics portion. That's what I was trying to do. But anyway, I installed OpenCL before without the --no-dkms option, and the result was exactly the same. Did that again just now ...

Code: Select all

$ amdgpu-install --opencl=rocr 
and same thing. OpenCL is installed, but no device found.

Code: Select all

$ clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3513.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

I have read posts (on reddit) where people use RX6700XT cards with OpenCL, so it must be doable somehow.... will try the pro-option next.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: 6700XT OpenCL and dual monitor problems...

Post by roblm »

After the installation is finished, copy the entire installation log in the Terminal window and post it.
User avatar
warriorofthelight
Level 3
Level 3
Posts: 100
Joined: Wed Jan 20, 2016 6:04 am

Re: 6700XT OpenCL and dual monitor problems...

Post by warriorofthelight »

roblm wrote: Mon Jun 05, 2023 6:45 am After the installation is finished, copy the entire installation log in the Terminal window and post it.
Ok so now I'm slowly getting desparate. This didn't even install:

Code: Select all

$ amdgpu-install --usecase=workstation --opencl=rocr
Ign:1 http://linux-mint.froonix.org vera InRelease
OK:2 http://linux-mint.froonix.org vera Release                                                                                
OK:3 http://ubuntu.lagis.at/ubuntu jammy InRelease                                                                             
OK:4 http://ubuntu.lagis.at/ubuntu jammy-updates InRelease                                                                     
OK:5 http://ubuntu.lagis.at/ubuntu jammy-backports InRelease                                                                   
OK:6 https://linux.teamviewer.com/deb stable InRelease                                                                         
OK:8 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                
OK:9 https://repo.radeon.com/amdgpu/5.4.5/ubuntu jammy InRelease          
OK:10 https://repo.radeon.com/rocm/apt/5.4.5 jammy InRelease
Paketlisten werden gelesen… Fertig
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
E: Paket amdgpu-pro kann nicht gefunden werden.
E: Paket amdgpu-pro-lib32 kann nicht gefunden werden.
And the AMD documentation lists the usecase=opencl, which also doesn't work. It installs, but with the same result as before.
Plot twist: I switched the GPU back to the RX570 (to check if the problem has anything to do with the RX6770XT at all), which I used up until a week ago for years with OpenCL (I use Katago and Lizzie/Leela for analysing Go games... nothing else, that's what I need OpenCL for and that's what has worked for years). So now I'm back to zero.

Here's the log, if that helps.

Code: Select all

$ amdgpu-install --usecase=opencl
Ign:1 http://linux-mint.froonix.org vera InRelease
OK:2 http://ubuntu.lagis.at/ubuntu jammy InRelease                                                                             
OK:3 http://linux-mint.froonix.org vera Release                                                                                
OK:4 http://ubuntu.lagis.at/ubuntu jammy-updates InRelease                                                                     
OK:5 http://ubuntu.lagis.at/ubuntu jammy-backports InRelease                                                                   
OK:6 https://linux.teamviewer.com/deb stable InRelease                                                                         
OK:8 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                
OK:9 https://repo.radeon.com/amdgpu/5.4.5/ubuntu jammy InRelease         
OK:10 https://repo.radeon.com/rocm/apt/5.4.5 jammy InRelease
Paketlisten werden gelesen… Fertig
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
linux-headers-5.19.0-43-generic ist schon die neueste Version (5.19.0-43.44~22.04.1).
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
  libasan4 libcilkrts5 libgcc-7-dev libmpx2 libstdc++-7-dev libubsan0 linux-headers-5.15.0-70 linux-headers-5.15.0-70-generic
  linux-headers-5.15.0-72 linux-headers-5.15.0-72-generic linux-image-5.15.0-70-generic linux-image-5.15.0-71-generic
  linux-image-5.15.0-72-generic linux-modules-5.15.0-70-generic linux-modules-5.15.0-71-generic
  linux-modules-5.15.0-72-generic linux-modules-extra-5.15.0-70-generic linux-modules-extra-5.15.0-71-generic
  linux-modules-extra-5.15.0-72-generic valgrind
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
Die folgenden zusätzlichen Pakete werden installiert:
  amdgpu-core amdgpu-dkms-firmware comgr hsa-rocr libdrm-amdgpu-amdgpu1 libdrm-amdgpu-common libdrm2-amdgpu
  openmp-extras-runtime rocm-core rocm-language-runtime rocm-ocl-icd rocm-opencl
Die folgenden NEUEN Pakete werden installiert:
  amdgpu-core amdgpu-dkms amdgpu-dkms-firmware comgr hsa-rocr libdrm-amdgpu-amdgpu1 libdrm-amdgpu-common libdrm2-amdgpu
  openmp-extras-runtime rocm-core rocm-language-runtime rocm-ocl-icd rocm-opencl rocm-opencl-runtime
0 aktualisiert, 14 neu installiert, 0 zu entfernen und 19 nicht aktualisiert.
Es müssen noch 0 B von 100 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 924 MB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] 
Vormals nicht ausgewähltes Paket amdgpu-core wird gewählt.
(Lese Datenbank ... 749091 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../00-amdgpu-core_1%3a5.4.50405-1577590.22.04_all.deb ...
Entpacken von amdgpu-core (1:5.4.50405-1577590.22.04) ...
Vormals nicht ausgewähltes Paket amdgpu-dkms-firmware wird gewählt.
Vorbereitung zum Entpacken von .../01-amdgpu-dkms-firmware_1%3a5.18.13.50405-1577590.22.04_all.deb ...
Entpacken von amdgpu-dkms-firmware (1:5.18.13.50405-1577590.22.04) ...
Vormals nicht ausgewähltes Paket amdgpu-dkms wird gewählt.
Vorbereitung zum Entpacken von .../02-amdgpu-dkms_1%3a5.18.13.50405-1577590.22.04_all.deb ...
Entpacken von amdgpu-dkms (1:5.18.13.50405-1577590.22.04) ...
Vormals nicht ausgewähltes Paket rocm-core wird gewählt.
Vorbereitung zum Entpacken von .../03-rocm-core_5.4.5.50405-146~22.04_amd64.deb ...
Entpacken von rocm-core (5.4.5.50405-146~22.04) ...
Vormals nicht ausgewähltes Paket comgr wird gewählt.
Vorbereitung zum Entpacken von .../04-comgr_2.4.0.50405-146~22.04_amd64.deb ...
Entpacken von comgr (2.4.0.50405-146~22.04) ...
Vormals nicht ausgewähltes Paket libdrm2-amdgpu:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../05-libdrm2-amdgpu_1%3a2.4.113.50405-1577590.22.04_amd64.deb ...
Entpacken von libdrm2-amdgpu:amd64 (1:2.4.113.50405-1577590.22.04) ...
Vormals nicht ausgewähltes Paket libdrm-amdgpu-common wird gewählt.
Vorbereitung zum Entpacken von .../06-libdrm-amdgpu-common_1.0.0.50405-1577590.22.04_all.deb ...
Entpacken von libdrm-amdgpu-common (1.0.0.50405-1577590.22.04) ...
Vormals nicht ausgewähltes Paket libdrm-amdgpu-amdgpu1:amd64 wird gewählt.
Vorbereitung zum Entpacken von .../07-libdrm-amdgpu-amdgpu1_1%3a2.4.113.50405-1577590.22.04_amd64.deb ...
Entpacken von libdrm-amdgpu-amdgpu1:amd64 (1:2.4.113.50405-1577590.22.04) ...
Vormals nicht ausgewähltes Paket hsa-rocr wird gewählt.
Vorbereitung zum Entpacken von .../08-hsa-rocr_1.7.0.50405-146~22.04_amd64.deb ...
Entpacken von hsa-rocr (1.7.0.50405-146~22.04) ...
Vormals nicht ausgewähltes Paket openmp-extras-runtime wird gewählt.
Vorbereitung zum Entpacken von .../09-openmp-extras-runtime_15.54.0.50405-146~22.04_amd64.deb ...
Entpacken von openmp-extras-runtime (15.54.0.50405-146~22.04) ...
Vormals nicht ausgewähltes Paket rocm-language-runtime wird gewählt.
Vorbereitung zum Entpacken von .../10-rocm-language-runtime_5.4.5.50405-146~22.04_amd64.deb ...
Entpacken von rocm-language-runtime (5.4.5.50405-146~22.04) ...
Vormals nicht ausgewähltes Paket rocm-ocl-icd wird gewählt.
Vorbereitung zum Entpacken von .../11-rocm-ocl-icd_2.0.0.50405-146~22.04_amd64.deb ...
Entpacken von rocm-ocl-icd (2.0.0.50405-146~22.04) ...
Vormals nicht ausgewähltes Paket rocm-opencl wird gewählt.
Vorbereitung zum Entpacken von .../12-rocm-opencl_2.0.0.50405-146~22.04_amd64.deb ...
Entpacken von rocm-opencl (2.0.0.50405-146~22.04) ...
Vormals nicht ausgewähltes Paket rocm-opencl-runtime wird gewählt.
Vorbereitung zum Entpacken von .../13-rocm-opencl-runtime_5.4.5.50405-146~22.04_amd64.deb ...
Entpacken von rocm-opencl-runtime (5.4.5.50405-146~22.04) ...
rocm-core (5.4.5.50405-146~22.04) wird eingerichtet ...
update-alternatives: /opt/rocm-5.4.5 wird verwendet, um /opt/rocm (rocm) im automatischen Modus bereitzustellen
rocm-ocl-icd (2.0.0.50405-146~22.04) wird eingerichtet ...
amdgpu-core (1:5.4.50405-1577590.22.04) wird eingerichtet ...
amdgpu-dkms-firmware (1:5.18.13.50405-1577590.22.04) wird eingerichtet ...
libdrm-amdgpu-common (1.0.0.50405-1577590.22.04) wird eingerichtet ...
comgr (2.4.0.50405-146~22.04) wird eingerichtet ...
amdgpu-dkms (1:5.18.13.50405-1577590.22.04) wird eingerichtet ...
Loading new amdgpu-5.18.13-1577590.22.04 DKMS files...
Building for 5.19.0-43-generic
Building for architecture amd64
Building initial module for 5.19.0-43-generic
Secure Boot not enabled on this system.
Done.
Forcing installation of amdgpu

amdgpu.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.19.0-43-generic/updates/dkms/

amdttm.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.19.0-43-generic/updates/dkms/

amdkcl.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.19.0-43-generic/updates/dkms/

amd-sched.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.19.0-43-generic/updates/dkms/

amddrm_ttm_helper.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/5.19.0-43-generic/updates/dkms/

Running the post_install script:

depmod....
update-initramfs: Generating /boot/initrd.img-5.19.0-43-generic
W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vega10_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_10_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_imu.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_toc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sdma_6_0_3.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/smu_13_0_10.bin for module amdgpu
hsa-rocr (1.7.0.50405-146~22.04) wird eingerichtet ...
libdrm2-amdgpu:amd64 (1:2.4.113.50405-1577590.22.04) wird eingerichtet ...
rocm-opencl (2.0.0.50405-146~22.04) wird eingerichtet ...
libdrm-amdgpu-amdgpu1:amd64 (1:2.4.113.50405-1577590.22.04) wird eingerichtet ...
openmp-extras-runtime (15.54.0.50405-146~22.04) wird eingerichtet ...
rocm-language-runtime (5.4.5.50405-146~22.04) wird eingerichtet ...
rocm-opencl-runtime (5.4.5.50405-146~22.04) wird eingerichtet ...
update-alternatives: /opt/rocm-5.4.5/bin/clinfo wird verwendet, um /usr/bin/clinfo (clinfo) im automatischen Modus bereitzustellen
update-alternatives: Warnung: /usr/bin/clinfo wird nicht durch einen Link ersetzt
Trigger für libc-bin (2.35-0ubuntu3.1) werden verarbeitet ...
[sudo] Passwort für werner:         

$ clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3513.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

User avatar
warriorofthelight
Level 3
Level 3
Posts: 100
Joined: Wed Jan 20, 2016 6:04 am

Re: 6700XT OpenCL and dual monitor problems...

Post by warriorofthelight »

Ok.... disregard my last post (or not, I don't know what's relevant anymore...). I just tried this mesa-opencl-icd package that I never needed before (with "$ sudo apt install mesa-opencl-icd")

And suddenly, I get the opencl-device (I should mention I switched GPU again back to the RX6770XT, but clinfo shows the device for both GPUs now):

Code: Select all

$ clinfo
Number of platforms                               2
  Platform Name                                   Clover
  Platform Vendor                                 Mesa
  Platform Version                                OpenCL 1.1 Mesa 22.2.5
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd
  Platform Extensions function suffix             MESA

  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3513.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                                   Clover
Number of devices                                 1
  Device Name                                     AMD Radeon RX 6700 XT (navi22, LLVM 15.0.6, DRM 3.48, 5.19.0-43-generic)
  Device Vendor                                   AMD
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 1.1 Mesa 22.2.5
  Device Numeric Version                          0x401000 (1.1.0)
  Driver Version                                  22.2.5
  Device OpenCL C Version                         OpenCL C 1.1 
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Max compute units                               40
  Max clock frequency                             2725MHz
  Max work item dimensions                        3
  Max work item sizes                             256x256x256
  Max work group size                             256
=== CL_PROGRAM_BUILD_LOG ===
fatal error: cannot open file '/usr/lib/clc/gfx1031-amdgcn-mesa-mesa3d.bc': No such file or directory
  Preferred work group size multiple (kernel)     <getWGsizes:1504: create kernel : error -46>
  Preferred / native vector sizes                 
    char                                                16 / 16      
    short                                                8 / 8       
    int                                                  4 / 4       
    long                                                 2 / 2       
    half                                                 0 / 0        (n/a)
    float                                                4 / 4       
    double                                               2 / 2        (cl_khr_fp64)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     No
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  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                              12884901888 (12GiB)
  Error Correction support                        No
  Max memory allocation                           3221225472 (3GiB)
  Unified memory for Host and Device              No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       32768 bits (4096 bytes)
  Global Memory cache type                        None
  Image support                                   No
  Local memory type                               Local
  Local memory size                               65536 (64KiB)
  Max number of constant args                     16
  Max constant buffer size                        67108864 (64MiB)
  Max size of kernel argument                     1024
  Queue properties                                
    Out-of-order execution                        No
    Profiling                                     Yes
  Profiling timer resolution                      0ns
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    ILs with version                              (n/a)
  Built-in kernels with version                   (n/a)
  Device Extensions                               cl_khr_byte_addressable_store 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_fp64 cl_khr_extended_versioning
  Device Extensions with Version                  cl_khr_byte_addressable_store                                    0x400000 (1.0.0)
                                                  cl_khr_global_int32_base_atomics                                 0x400000 (1.0.0)
                                                  cl_khr_global_int32_extended_atomics                             0x400000 (1.0.0)
                                                  cl_khr_local_int32_base_atomics                                  0x400000 (1.0.0)
                                                  cl_khr_local_int32_extended_atomics                              0x400000 (1.0.0)
                                                  cl_khr_int64_base_atomics                                        0x400000 (1.0.0)
                                                  cl_khr_int64_extended_atomics                                    0x400000 (1.0.0)
                                                  cl_khr_fp64                                                      0x400000 (1.0.0)
                                                  cl_khr_extended_versioning                                       0x400000 (1.0.0)

  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]              Success [MESA]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 Clover
    Device Name                                   AMD Radeon RX 6700 XT (navi22, LLVM 15.0.6, DRM 3.48, 5.19.0-43-generic)
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 Clover
    Device Name                                   AMD Radeon RX 6700 XT (navi22, LLVM 15.0.6, DRM 3.48, 5.19.0-43-generic)
  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                                 Clover
    Device Name                                   AMD Radeon RX 6700 XT (navi22, LLVM 15.0.6, DRM 3.48, 5.19.0-43-generic)
HOWEVER: As you can see in the log, there is some error:

Code: Select all

fatal error: cannot open file '/usr/lib/clc/gfx1031-amdgcn-mesa-mesa3d.bc': No such file or directory
Whatever that means. Running katago to check if it can actually compute fails with this:

Code: Select all

~/katago$ ./katago tuner -model kata1-b40.bin.gz 
2023-06-05 22:29:15+0200: Loading model...
2023-06-05 22:29:16+0200: Querying system devices...
2023-06-05 22:29:16+0200: Found OpenCL Platform 0: Clover (Mesa) (OpenCL 1.1 Mesa 22.2.5)
2023-06-05 22:29:16+0200: Found 1 device(s) on platform 0 with type CPU or GPU or Accelerator
2023-06-05 22:29:16+0200: Found OpenCL Platform 1: AMD Accelerated Parallel Processing (Advanced Micro Devices, Inc.) (OpenCL 2.1 AMD-APP (3513.0))
2023-06-05 22:29:16+0200: Found 0 device(s) on platform 1 with type CPU or GPU or Accelerator, skipping
2023-06-05 22:29:16+0200: Found OpenCL Device 0: AMD Radeon RX 6700 XT (navi22, LLVM 15.0.6, DRM 3.48, 5.19.0-43-generic) (AMD) (score 11000101)
2023-06-05 22:29:16+0200: Tuner starting...
2023-06-05 22:29:16+0200: Creating context for OpenCL Platform: Clover (Mesa) (OpenCL 1.1 Mesa 22.2.5)
2023-06-05 22:29:16+0200: Using OpenCL Device 0: AMD Radeon RX 6700 XT (navi22, LLVM 15.0.6, DRM 3.48, 5.19.0-43-generic) (AMD) OpenCL 1.1 Mesa 22.2.5 (Extensions: cl_khr_byte_addressable_store 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_fp64 cl_khr_extended_versioning)
==============================================================================
Tuning device 0: AMD Radeon RX 6700 XT (navi22, LLVM 15.0.6, DRM 3.48, 5.19.0-43-generic)
File does not alrady exist or unable to parse parameters in: /home/werner/.katago/opencltuning/tune8_gpuAMDRadeonRX6700XTnavi22LLVM1506DRM348519043generic_x19_y19_c256_mv10.txt
Starting fresh tuning, saving results to /home/werner/.katago/opencltuning/tune8_gpuAMDRadeonRX6700XTnavi22LLVM1506DRM348519043generic_x19_y19_c256_mv10.txt
Beginning GPU tuning for AMD Radeon RX 6700 XT (navi22, LLVM 15.0.6, DRM 3.48, 5.19.0-43-generic) modelVersion 10 channels 256
Setting winograd3x3TileSize = 4
------------------------------------------------------
Tuning xGemmDirect for 1x1 convolutions and matrix mult
Testing 56 different configs
WARNING: Reference implementation failed: CL_BUILD_PROGRAM_FAILURE
Tuning 20/56 ...
Tuning 40/56 ...
ERROR: Could not find any configuration that worked
------------------------------------------------------
Tuning xGemm for convolutions
Testing 70 different configs
WARNING: Reference implementation failed: CL_BUILD_PROGRAM_FAILURE
Tuning 20/70 ...
Tuning 40/70 ...
Tuning 60/70 ...
ERROR: Could not find any configuration that worked
------------------------------------------------------
Tuning hGemmWmma for convolutions
Testing 146 different configs
FP16 tensor core tuning failed, assuming no FP16 tensor core support
------------------------------------------------------
Tuning xGemm for convolutions - trying with FP16 storage
Testing 70 different configs
FP16 storage tuning failed, assuming no FP16 storage support
------------------------------------------------------
Using FP32 storage!
Using FP32 compute!
------------------------------------------------------
Tuning winograd transform for convolutions
Testing 47 different configs
WARNING: Reference implementation failed: CL_BUILD_PROGRAM_FAILURE
Tuning 20/47 ...
Tuning 40/47 ...
ERROR: Could not find any configuration that worked
------------------------------------------------------
Tuning winograd untransform for convolutions
Testing 111 different configs
WARNING: Reference implementation failed: CL_BUILD_PROGRAM_FAILURE
Tuning 20/111 ...
Tuning 40/111 ...
Tuning 60/111 ...
Tuning 80/111 ...
Tuning 100/111 ...
ERROR: Could not find any configuration that worked
------------------------------------------------------
Tuning global pooling strides
Testing 106 different configs
WARNING: Reference implementation failed: CL_BUILD_PROGRAM_FAILURE
Tuning 20/106 ...
Tuning 40/106 ...
Tuning 60/106 ...
Tuning 80/106 ...
Tuning 100/106 ...
ERROR: Could not find any configuration that worked
Done tuning
------------------------------------------------------
Done, results saved to /home/werner/.katago/opencltuning/tune8_gpuAMDRadeonRX6700XTnavi22LLVM1506DRM348519043generic_x19_y19_c256_mv10.txt
Never seen that error before, but I assume it has something to do with the error that clinfo gives, mentioned above. Up until now, whenever clinfo was showing the device and katago said "Creating context for OpenCL Platform"... everything else would just work fine.

So is this mesa-opencl-icd package not what I need? Without it, no device shows up. With it, weird errors appear....

Sorry for bothering you with this mess and thanks for any input.
User avatar
SMG
Level 25
Level 25
Posts: 31347
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: 6700XT OpenCL and dual monitor problems...

Post by SMG »

warriorofthelight wrote: Mon Jun 05, 2023 4:39 pm Ok.... disregard my last post (or not, I don't know what's relevant anymore...). I just tried this mesa-opencl-icd package that I never needed before (with "$ sudo apt install mesa-opencl-icd")

And suddenly, I get the opencl-device (I should mention I switched GPU again back to the RX6770XT, but clinfo shows the device for both GPUs now):

Code: Select all

$ clinfo
Number of platforms                               2
  Platform Name                                   Clover
  Platform Vendor                                 Mesa
  Platform Version                                OpenCL 1.1 Mesa 22.2.5
OpenCL 1.1 is old. :(

This question from two years ago OpenCL not working with RX 6700 XT indicates installing ROCm solved their issue.

Here is the latest Quick Start (Linux) for AMD ROCm™ Platform information.

When I clicked on the GPU and OS support link on the left side, it went to this page which indicates it works with the 5.15 and the 5.17-oem kernels. Maybe the 5.19 you are using is causing an issue? That would be my only guess at this point.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: 6700XT OpenCL and dual monitor problems...

Post by roblm »

warriorofthelight wrote: So is this mesa-opencl-icd package not what I need? Without it, no device shows up. With it, weird errors appear....
No device is listed for the AMD platform:

Code: Select all

Number of platforms                               2
  Platform Name                                   Clover
  Platform Vendor                                 Mesa
 
Platform Name                                   Clover
Number of devices                                 1


Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.

Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 0
I don't think you want to run OpenCL using the mesa libraries but the AMD libraries.

Here is the repo list when I use the command amdgpu-install --usecase=workstation --opencl=rocr

Code: Select all

Ign:1 http://packages.linuxmint.com vera InRelease
Hit:2 http://packages.linuxmint.com vera Release                                                                   
Hit:4 http://archive.ubuntu.com/ubuntu jammy InRelease                                                             
Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease                            
Hit:6 https://repo.radeon.com/amdgpu/5.4.1/ubuntu jammy InRelease     
Hit:7 https://repo.radeon.com/rocm/apt/5.4.1 jammy InRelease          
Hit:8 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:9 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-headers-5.15.0-56-generic is already the newest version (5.15.0-56.62).
The following NEW packages will be installed:
	This list includes amdgpu-pro & amdgpu-pro-lib32
Here is yours:

Code: Select all

Ign:1 http://linux-mint.froonix.org vera InRelease
OK:2 http://linux-mint.froonix.org vera Release                                                                                
OK:3 http://ubuntu.lagis.at/ubuntu jammy InRelease                                                                             
OK:4 http://ubuntu.lagis.at/ubuntu jammy-updates InRelease                                                                     
OK:5 http://ubuntu.lagis.at/ubuntu jammy-backports InRelease                                                                   
OK:6 https://linux.teamviewer.com/deb stable InRelease                                                                         
OK:8 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                
OK:9 https://repo.radeon.com/amdgpu/5.4.5/ubuntu jammy InRelease          
OK:10 https://repo.radeon.com/rocm/apt/5.4.5 jammy InRelease
E: Package amdgpu-pro cannot be found
E: Package amdgpu-pro-lib32 cannot be found
The difference is that you also have this repo: linux.teamviewer.com/deb stable InRelease
User avatar
warriorofthelight
Level 3
Level 3
Posts: 100
Joined: Wed Jan 20, 2016 6:04 am

Re: 6700XT OpenCL and dual monitor problems...

Post by warriorofthelight »

roblm wrote: Tue Jun 06, 2023 11:14 am
I don't think you want to run OpenCL using the mesa libraries but the AMD libraries.
Can you translate that into a command? :oops: What do you mean? Not install the mesa-opencl-icd (I have no clue what that is, but I've seen different "icds")? Instead installing another? The AMD instructions do not mention anything about this. And I didn't need it before, ever. I think the troubles started after I switched from 20.3 to 21, but I'm not sure anymore. I blamed it on the new GPU, but it seems that's not the issue at all.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: 6700XT OpenCL and dual monitor problems...

Post by roblm »

Remove the mesa-opencl-icd package that you previously installed, because it hasn't helped: sudo apt remove mesa-opencl-icd

You could also try temporarily removing this repo before trying any new driver installations:
linux.teamviewer.com/deb stable InRelease

Then try this again: amdgpu-install --usecase=workstation --opencl=rocr
Locked

Return to “Graphics Cards & Monitors”