Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
0 answers
303 views
Nouveau driver not working with RTX 3060 mobile
In my past experience, Fedora's Nouveau driver worked splendidly by default. In fact I would have try and disable it to get the proprietary NVIDIA to take over. However the Nvidia driver is a lot of maintenance, and its hard to get it to run with secure-boot, and I am tired of it tainting my kernel....
In my past experience, Fedora's Nouveau driver worked splendidly by default. In fact I would have try and disable it to get the proprietary NVIDIA to take over. However the Nvidia driver is a lot of maintenance, and its hard to get it to run with secure-boot, and I am tired of it tainting my kernel. So I wanted to give the Mesa, Nouveau, and NVK a try. My primary need right now is compute with OpenCL. I have a dual setup with a integrated radeon GPU, and an RTX 3000 series Nvidia GPU. I started by removing all things Nvidia
dnf remove \*nvidia\*
dnf remove \*cuda\*
I installed the drivers, but some issues, got a tip to install the Nvidia firmware
dnf install nvidia-gpu-firmware
I did that, it got rid of some errors in journalctl but I still had problems, I reinstalled the drivers but the problems persisted, here are some of the issues I am having: clinfo gives the following errors:
nvc0_screen_create:1002 - Base screen init failed: -19
and
=== CL_PROGRAM_BUILD_LOG ===
:1:10: fatal error: 'clc/clc.h' file not found
It looks like it is trying to query the nvidia device but failing, I get the first error when I compile and run my own OpenCL Programs. vulkaninfo hangs and journalctl gives
fedora abrt-dump-journal-oops: abrt-dump-journal-oops: Creating problem directories
fedora abrt-dump-journal-oops: abrt-dump-journal-oops: Found oopses: 1
fedora kernel: note: vulkaninfo exited with irqs disabled
When it runs, along with what looks like some sort of call stack/dump. glxgears and inxi -Gx also hang though inxi does work, but it does not show the nvidia gpu (just my AMD integrated one). I don't know if these journalctl messages are relevant
fedora gnome-shell: Added device '/dev/dri/card1' (nouveau) using non-atomic mode setting.
fedora gnome-shell: Device '/dev/dri/card1' prefers shadow buffer
nouveau [REDACTED]: fb: VPR locked, but no scrubber binary!
Somewhat at a loss, I don't know the next step to debug or solve the problem, *can anyone please help me to get open source OpenCL drivers to work on my Nvidia GPU (along possibly with NVK) please?* :) Thanks! **UPDATE** (occurred after P.s) After a system update vulkaninfo started working and showing the nvidia driver, however OpenCL programs seem to still struggle (clinfo still does not recognize it) or crash when retrieving the Nvidia GPU info. clinfo no longer gets
nvc0_screen_create:1002 - Base screen init failed: -19
but still gets
=== CL_PROGRAM_BUILD_LOG ===
:1:10: fatal error: 'clc/clc.h' file not found
and does not display info about the Nvidia GPU. inxi -Gx now displays (with redaction)
Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo
    driver: nouveau v: kernel arch: Ampere bus-ID: REDACT
  Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5 bus-ID: REDACT
I did a fresh reinstall of the drivers + reboot and this persisted. I have a slight issue with the firmware update tool, unsure if its related
FuUsbDevice          failed to parse platform BOS descriptor: failed to parse: no supported platform version: did not find magic
P.s I have a memory of doing something to disable the Nouveau driver a while back, so that my second monitor could be displayed via a direct graphics card connection (because nouveau didn't seem to do that). I already reversed configurations and boot parameters in grub blacklisting Nouveau (I think), but there may have been something else, I don't know if it would have anything to do with it... trying to figure it out if there is any configuration left, I think it may have had to do with GDM. **UPDATE**: Thanks to a chat with the developers in the freedesktop chat room I actually did get this working, had something to do with Clover if I recall. I have to go back and check what I did, but I may post it here after I do that
The Floating Brain (151 rep)
Sep 16, 2024, 04:08 PM • Last activity: Dec 2, 2024, 06:28 AM
1 votes
1 answers
306 views
openCL with Intel GPU in Linux Mint
I am trying to get openCL to recognize my GPU, in order to use the software katago (go AI), but I'm stuck. After several tries following what I found online, clinfo is not empty anymore, it returns this: $ clinfo Number of platforms 1 Platform Name Clover Platform Vendor Mesa Platform Version OpenCL...
I am trying to get openCL to recognize my GPU, in order to use the software katago (go AI), but I'm stuck. After several tries following what I found online, clinfo is not empty anymore, it returns this: $ clinfo Number of platforms 1 Platform Name Clover Platform Vendor Mesa Platform Version OpenCL 1.1 Mesa 23.2.1-1ubuntu3.1~22.04.2 Platform Profile FULL_PROFILE Platform Extensions cl_khr_icd Platform Extensions function suffix MESA Platform Name Clover Number of devices 0 NULL platform behavior clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Clover clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No devices found in platform [Clover?] 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.14 ICD loader Profile OpenCL 3.0 and here is the "Graphics" part of what returns "inxi -Fxxxrz": Graphics: Device-1: Intel vendor: Hewlett-Packard driver: i915 v: kernel ports: active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4, HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:a721 class-ID: 0300 Device-2: Cheng Uei Precision Industry (Foxlink) HP 5MP Camera type: USB driver: uvcvideo bus-ID: 3-1:2 chip-ID: 05c8:0613 class-ID: fe01 serial: Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: modesetting unloaded: fbdev,vesa gpu: i915 display-ID: :0 screens: 1 Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 508x317mm (20.0x12.5") s-diag: 599mm (23.6") Monitor-1: eDP-1 model: LG res: 1920x1200 hz: 60 dpi: 161 size: 302x189mm (11.9x7.4") diag: 356mm (14") modes: 1920x1200 OpenGL: renderer: Mesa Intel Graphics (RPL-U) v: 4.6 Mesa 23.2.1-1ubuntu3.1~22.04.2 direct render: Yes and output of lspci -k: 00:02.0 VGA compatible controller: Intel Corporation Device a721 (rev 04) DeviceName: Onboard IGD Subsystem: Hewlett-Packard Company Device 8b41 Kernel driver in use: i915 Kernel modules: i915 The graphic card should be Intel Iris Xe, but it does not seem to be fully recognized by the system.
Denis (141 rep)
May 1, 2024, 02:37 PM • Last activity: May 12, 2024, 09:38 PM
0 votes
0 answers
786 views
AMDGPU doesn't work with hashcat
AMDGPU doesn't work with hashcat, anyone knows how to fix this problem? ``` $ ~ hashcat -I hashcat (v6.2.6) starting in backend information mode clCreateCommandQueue(): CL_OUT_OF_HOST_MEMORY OpenCL Info: ============ OpenCL Platform ID #1 Vendor..: Advanced Micro Devices, Inc. Name....: AMD Accelera...
AMDGPU doesn't work with hashcat, anyone knows how to fix this problem?
$ ~ hashcat -I
hashcat (v6.2.6) starting in backend information mode

clCreateCommandQueue(): CL_OUT_OF_HOST_MEMORY

OpenCL Info:
============

OpenCL Platform ID #1
  Vendor..: Advanced Micro Devices, Inc.
  Name....: AMD Accelerated Parallel Processing
  Version.: OpenCL 2.1 AMD-APP.dbg (3513.0)

OpenCL Platform ID #2
  Vendor..: Intel(R) Corporation
  Name....: Intel(R) CPU Runtime for OpenCL(TM) Applications
  Version.: OpenCL 2.1 LINUX

  Backend Device ID #1
    Type...........: CPU
    Vendor.ID......: 8
    Vendor.........: Intel(R) Corporation
    Name...........: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
    Version........: OpenCL 2.1 (Build 0)
    Processor(s)...: 8
    Clock..........: 1600
    Memory.Total...: 11809 MB (limited to 1476 MB allocatable in one block)
    Memory.Free....: 5872 MB
    Local.Memory...: 32 KB
    OpenCL.Version.: OpenCL C 2.0 
    Driver.Version.: 18.1.0.0920

OpenCL Platform ID #3
  Vendor..: Intel(R) Corporation
  Name....: Intel(R) OpenCL Graphics
  Version.: OpenCL 3.0 

  Backend Device ID #2
    Type...........: GPU
    Vendor.ID......: 8
    Vendor.........: Intel(R) Corporation
    Name...........: Intel(R) UHD Graphics 620
    Version........: OpenCL 3.0 NEO 
    Processor(s)...: 24
    Clock..........: 1100
    Memory.Total...: 9447 MB (limited to 2047 MB allocatable in one block)
    Memory.Free....: 4672 MB
    Local.Memory...: 64 KB
    OpenCL.Version.: OpenCL C 1.2 
    Driver.Version.: 23.22.026516

OpenCL Platform ID #4
  Vendor..: Advanced Micro Devices, Inc.
  Name....: AMD Accelerated Parallel Processing
  Version.: OpenCL 2.1 AMD-APP (3180.7)

  Backend Device ID #3
    Type...........: GPU
    Vendor.ID......: 1
    Vendor.........: Advanced Micro Devices, Inc.
    Name...........: AMD Radeon Graphics
    Version........: OpenCL 1.2 AMD-APP (3180.7)
    Processor(s)...: 5
    Clock..........: 600
    Memory.Total...: 2047 MB (limited to 1522 MB allocatable in one block)
    Memory.Free....: 0 MB
    Local.Memory...: 32 KB
    OpenCL.Version.: OpenCL C 1.2 
    Driver.Version.: 3180.7
    PCI.Addr.BDF...: 01:00.0
0x786d (1 rep)
Sep 5, 2023, 09:20 AM • Last activity: Mar 7, 2024, 09:29 PM
0 votes
1 answers
591 views
Running Davinci Resolve with AMD GPU
I want to run Davinci Resolve on my Arch Linux system with a AMD 7900 XTX GPU. Currently Resolve does not even start (process exits immediately after start). Here are the outputs: ``` $ ./resolve ActCCMessage Already in Table: Code= c005, Mode= 13, Level= 1, CmdKey= -1, Option= 0 ActCCMessage Alread...
I want to run Davinci Resolve on my Arch Linux system with a AMD 7900 XTX GPU. Currently Resolve does not even start (process exits immediately after start). Here are the outputs:
$ ./resolve
ActCCMessage Already in Table: Code= c005, Mode= 13, Level= 1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c006, Mode= 13, Level= 1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c007, Mode= 13, Level= 1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= 2282, Mode= 0, Level= 0, CmdKey= 8, Option= 0
PnlMsgActionStringAdapter Already in Table: Code= 615e, Mode= 0, Level= 0, CmdKey= -1, Option= 0
18.6.4.0006 Linux/Clang x86_64
Main thread starts: 37006000
0x7efd37006000 | Undefined | INFO | 2023-12-09 05:35:11,591 | --------------------------------------------------------------------------------
0x7efd37006000 | Undefined | INFO | 2023-12-09 05:35:11,591 | Loaded log config from /home/vankurt/.local/share/DaVinciResolve/configs/log-conf.xml
0x7efd37006000 | Undefined | INFO | 2023-12-09 05:35:11,591 | --------------------------------------------------------------------------------
I also tried davinci-resolve-checker, to see if I have the correct Open CL and GPU packages installed. Here's what it says:
DaVinci Resolve checker 5.2.5
Installed DaVinci Resolve package: davinci-resolve-studio 18.6.4-1
Chassis type: desktop
Installed OpenCL drivers:
opencl-rusticl-mesa 1:23.2.1-2
rocm-opencl-runtime 5.7.1-1
Presented GPUs:
Navi 31 [Radeon RX 7900 XT/7900 XTX] (kernel driver in use: amdgpu)
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 7900 XTX (gfx1100, LLVM 16.0.6, DRM 3.54, 6.6.4-arch1-1)
clinfo detected platforms and devices:
AMD Accelerated Parallel Processing (roc) (number of devices: 1)
AMD Radeon RX 7900 XTX
rusticl (number of devices: 0)

All seems good. You should be able to run DaVinci Resolve successfully.
Has anyone been able to run Davinci Resolve with a AMD 7900 XTX? Are there any other packages I need to install? Is there anything else I can try?
Boris (103 rep)
Dec 9, 2023, 07:07 AM • Last activity: Jan 31, 2024, 12:28 PM
0 votes
0 answers
498 views
Linux stuck at boot after updating opensuse tumbleweed
I installed opensuse tumbleweed, updated to newest version, installed amdgpu for opencl usages. Rebooted, worked correctly. Updated via "sudo zypper dup" and there were some kernel changes. Rebooted, and stuck at boot (see screenshot), last few messages mention amdgpu and drm so my guess is that the...
I installed opensuse tumbleweed, updated to newest version, installed amdgpu for opencl usages. Rebooted, worked correctly. Updated via "sudo zypper dup" and there were some kernel changes. Rebooted, and stuck at boot (see screenshot), last few messages mention amdgpu and drm so my guess is that there is something wrong with the amdgpu but I need the amdgpu for opencl. I have two gpu's installed: gigabyte radeon 6870 1GB (connected with display) and amd 5700 XT (not connected to any display). If I connect the display to 5700XT then the computer boots to konsole, no gui. The cpu does not have integrated graphics. boot log Any ideas what can I do to make this work? I've booted previous snapshots and it worked correctly but after updating via "sudo zypper dup" it returns to the broken state.
platinganywhere (1 rep)
Aug 22, 2023, 12:14 PM
0 votes
0 answers
145 views
Looking for Distro With easy OpenCL support
I am looking for a distro with OpenCl support that is **not** Ubuntu or Fedora. I am open to any other distro I didnt have any luck in linux mint cinnamon. I am running an 5700XT.
I am looking for a distro with OpenCl support that is **not** Ubuntu or Fedora. I am open to any other distro I didnt have any luck in linux mint cinnamon. I am running an 5700XT.
rafe (13 rep)
Sep 15, 2021, 04:56 PM • Last activity: Jul 5, 2022, 06:41 AM
1 votes
0 answers
1599 views
Systemd-nspawn and gpgpu
I am trying to run a gpu-compute application inside of an nspawn container, i have configured the container as follows: `/etc/systemd/nspawn/ubuntuintel.nspawn`: ``` argon# cat ubuntuintel.nspawn [Exec] Capability=CAP_SYS_ADMIN [Files] Bind=/dev/dri ``` `/etc/systemd/system.control/systemd-nspawn@ub...
I am trying to run a gpu-compute application inside of an nspawn container, i have configured the container as follows: /etc/systemd/nspawn/ubuntuintel.nspawn:
argon# cat ubuntuintel.nspawn 
[Exec]
Capability=CAP_SYS_ADMIN

[Files]
Bind=/dev/dri
/etc/systemd/system.control/systemd-nspawn@ubuntuintel.service.d/50-DeviceAllow.conf:
# This is a drop-in unit file extension, created via "systemctl set-property"
# or an equivalent operation. Do not edit.
[Service]
DeviceAllow=
DeviceAllow=/dev/net/tun rwm
DeviceAllow=char-pts rw
DeviceAllow=/dev/loop-control rw
DeviceAllow=block-loop rw
DeviceAllow=block-blkext rw
DeviceAllow=/dev/mapper/control rw
DeviceAllow=block-device-mapper rw
DeviceAllow=/dev/dri rwm
Then i run the container via systemctl start systemd-nspawn@ubuntuintel.service In the container the /dev/dri directory is present, but upon running the application this happens: openat(AT_FDCWD, "/dev/dri/renderD128", O_RDWR) = -1 EPERM (Operation not permitted) What is the proper way to have the container use the gpu? I have also considered simply using qemu + pci passthrough but that is considerably heavier
Matt (193 rep)
Aug 27, 2021, 11:50 AM
1 votes
1 answers
2273 views
OpenCL with AMD RX 6900XT on Ubuntu 20.04
I have a fresh install of Ubuntu 20.04 (kernel version 5.8.0-50-generic) on a system consisting of an i9 9900K, an RX 6900XT and 32GB of RAM. This system is meant to run OpenCL code for a university project, preferably on the GPU. So far, i have installed the latest Pro Radeon drivers (version 21.10...
I have a fresh install of Ubuntu 20.04 (kernel version 5.8.0-50-generic) on a system consisting of an i9 9900K, an RX 6900XT and 32GB of RAM. This system is meant to run OpenCL code for a university project, preferably on the GPU. So far, i have installed the latest Pro Radeon drivers (version 21.10) using ./amdgpu-pro-install -y --opencl=pal,legacy, i have installed OpenCL headers using sudo apt-get install opencl-headers and i have installed ocl-icd-opencl-dev as well as cl-info and glmark. Using glmark, I can verify that at least my graphics card is correctly set up for running OpenGL. However, the AMD OpenCL platform contains no devices, i.e.
Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 0
Is there anything obvious that I missed? Further information that may be useful: I have also installed pocl-opencl-icd which produced a working OpenCL environment and the Intel drivers for my CPU, which doesn't work at the moment (but might get fixed by fixing the AMD platform?) This installation is not dear to me, I just care for a running OpenCL installation. A fresh install of any other (free) distribution is fine with me, if this is easier.
Student (21 rep)
Apr 29, 2021, 07:55 PM • Last activity: May 1, 2021, 12:35 PM
Showing page 1 of 8 total questions