Critical Error in GPU

user@name:~$ nvidia-settings

(nvidia-settings:1333): GLib-GObject-CRITICAL **: 13:23:54.137: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

Secure boot is disabled (Other OS selected) In system info it see my Nvidia GPU, but cant see cli programs. Also i installed with opencl-icd command which i found in this forum.

That error is normal when running nvidia-settings, just ignore.

Ok but also i have another problem. I cant see my GPU in openCL

Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

I dont know where it is. Is it might be the problem before installing nvidia i removed by purge nvidia, and in clinfo i cant see the cuda. In forum i realize someone solved the issue with installing cuda. Also cuda installition installing some dependencies too. Which i autoremove after removing cuda.

Which distro are you running?
nvidia-bug-report.sh is installed alinside the driver, so if it’s not there, there’s likely no driver installed.

Oh! Yeah, there it is. Im using Debian.
nvidia-bug-report.log.gz (326.3 KB)

Nvidia driver is installed and working fine, so should be an opencl issue.
Please post the output of
clinfo

With/Without sudo:
Number of platforms 0

ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.3.1
ICD loader Profile OpenCL 3.0

I might did a few changes in /etc/OpenCL/vendors
And when i type nvidia-settings its giving me the error of cant opening directory and in X11 making another conf file

Looks like the nvidia icd is missing. Please make sure the package nvidia-opencl-icd is installed.
Please post the output of
dpkg -l

nvidia-opencl-icd is installed. What grep command should i use ? The output is 1500 row

Sorry, I meant
dpkg -l |grep nvidia

ii  firmware-nvidia-gsp                   525.125.06-1~deb12u1                amd64        NVIDIA GSP firmware
ii  glx-alternative-nvidia                1.2.2                               amd64        allows the selection of NVIDIA as GLX provider
ii  libegl-nvidia0:amd64                  525.125.06-1~deb12u1                amd64        NVIDIA binary EGL library
ii  libgl1-nvidia-glvnd-glx:amd64         525.125.06-1~deb12u1                amd64        NVIDIA binary OpenGL/GLX library (GLVND variant)
ii  libgles-nvidia1:amd64                 525.125.06-1~deb12u1                amd64        NVIDIA binary OpenGL|ES 1.x library
ii  libgles-nvidia2:amd64                 525.125.06-1~deb12u1                amd64        NVIDIA binary OpenGL|ES 2.x library
ii  libglx-nvidia0:amd64                  525.125.06-1~deb12u1                amd64        NVIDIA binary GLX library
ii  libnvidia-allocator1:amd64            525.125.06-1~deb12u1                amd64        NVIDIA allocator runtime library
ii  libnvidia-cfg1:amd64                  525.125.06-1~deb12u1                amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-compiler:amd64              525.125.06-1~deb12u1                amd64        NVIDIA runtime compiler library
ii  libnvidia-egl-gbm1:amd64              1.1.0-2                             amd64        GBM EGL external platform library for NVIDIA
ii  libnvidia-egl-wayland1:amd64          1:1.1.10-1                          amd64        Wayland EGL External Platform library -- shared library
ii  libnvidia-eglcore:amd64               525.125.06-1~deb12u1                amd64        NVIDIA binary EGL core libraries
ii  libnvidia-encode1:amd64               525.125.06-1~deb12u1                amd64        NVENC Video Encoding runtime library
ii  libnvidia-glcore:amd64                525.125.06-1~deb12u1                amd64        NVIDIA binary OpenGL/GLX core libraries
ii  libnvidia-glvkspirv:amd64             525.125.06-1~deb12u1                amd64        NVIDIA binary Vulkan Spir-V compiler library
ii  libnvidia-ml-dev:amd64                11.8.86~11.8.0-5~deb12u1            amd64        NVIDIA Management Library (NVML) development files
ii  libnvidia-ml1:amd64                   525.125.06-1~deb12u1                amd64        NVIDIA Management Library (NVML) runtime library
ii  libnvidia-nvvm4:amd64                 525.125.06-1~deb12u1                amd64        NVIDIA NVVM Compiler library
ii  libnvidia-ptxjitcompiler1:amd64       525.125.06-1~deb12u1                amd64        NVIDIA PTX JIT Compiler library
ii  libnvidia-rtcore:amd64                525.125.06-1~deb12u1                amd64        NVIDIA binary Vulkan ray tracing (rtcore) library
ii  nvidia-alternative                    525.125.06-1~deb12u1                amd64        allows the selection of NVIDIA as GLX provider
ii  nvidia-cuda-dev:amd64                 11.8.89~11.8.0-5~deb12u1            amd64        NVIDIA CUDA development files
ii  nvidia-cuda-gdb                       11.8.86~11.8.0-5~deb12u1            amd64        NVIDIA CUDA Debugger (GDB)
ii  nvidia-cuda-toolkit                   11.8.89~11.8.0-5~deb12u1            amd64        NVIDIA CUDA development toolkit
ii  nvidia-cuda-toolkit-doc               11.8.0-5~deb12u1                    all          NVIDIA CUDA and OpenCL documentation
ii  nvidia-detect                         525.125.06-1~deb12u1                amd64        NVIDIA GPU detection utility
ii  nvidia-driver                         525.125.06-1~deb12u1                amd64        NVIDIA metapackage
ii  nvidia-driver-bin                     525.125.06-1~deb12u1                amd64        NVIDIA driver support binaries
ii  nvidia-driver-libs:amd64              525.125.06-1~deb12u1                amd64        NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
ii  nvidia-egl-common                     525.125.06-1~deb12u1                amd64        NVIDIA binary EGL driver - common files
ii  nvidia-egl-icd:amd64                  525.125.06-1~deb12u1                amd64        NVIDIA EGL installable client driver (ICD)
ii  nvidia-installer-cleanup              20220217+3~deb12u1                  amd64        cleanup after driver installation with the nvidia-installer
ii  nvidia-kernel-common                  20220217+3~deb12u1                  amd64        NVIDIA binary kernel module support files
ii  nvidia-kernel-dkms                    525.125.06-1~deb12u1                amd64        NVIDIA binary kernel module DKMS source
ii  nvidia-kernel-support                 525.125.06-1~deb12u1                amd64        NVIDIA binary kernel module support files
ii  nvidia-legacy-check                   525.125.06-1~deb12u1                amd64        check for NVIDIA GPUs requiring a legacy driver
ii  nvidia-modprobe                       535.54.03-1~deb12u1                 amd64        utility to load NVIDIA kernel modules and create device nodes
ii  nvidia-opencl-common                  525.125.06-1~deb12u1                amd64        NVIDIA OpenCL driver - common files
ii  nvidia-opencl-dev:amd64               11.8.89~11.8.0-5~deb12u1            amd64        NVIDIA OpenCL development files
ii  nvidia-opencl-icd:amd64               525.125.06-1~deb12u1                amd64        NVIDIA OpenCL installable client driver (ICD)
ii  nvidia-openjdk-8-jre                  9.+8u372-ga-1~11.8.0-5~deb12u1      amd64        Obsolete OpenJDK Java runtime, for NVIDIA applications
ii  nvidia-persistenced                   525.85.05-1                         amd64        daemon to maintain persistent software state in the NVIDIA driver
ii  nvidia-profiler                       11.8.87~11.8.0-5~deb12u1            amd64        NVIDIA Profiler for CUDA and OpenCL
ii  nvidia-settings                       525.125.06-1~deb12u1                amd64        tool for configuring the NVIDIA graphics driver
ii  nvidia-smi                            525.125.06-1~deb12u1                amd64        NVIDIA System Management Interface
ii  nvidia-support                        20220217+3~deb12u1                  amd64        NVIDIA binary graphics driver support files
ii  nvidia-vdpau-driver:amd64             525.125.06-1~deb12u1                amd64        Video Decode and Presentation API for Unix - NVIDIA driver
ii  nvidia-visual-profiler                11.8.87~11.8.0-5~deb12u1            amd64        NVIDIA Visual Profiler for CUDA and OpenCL
ii  nvidia-vulkan-common                  525.125.06-1~deb12u1                amd64        NVIDIA Vulkan driver - common files
ii  nvidia-vulkan-icd:amd64               525.125.06-1~deb12u1                amd64        NVIDIA Vulkan installable client driver (ICD)
ii  nvidia-xconfig                        525.85.05-1                         amd64        deprecated X configuration tool for non-free NVIDIA drivers
ii  xserver-xorg-video-nvidia             525.125.06-1~deb12u1                amd64        NVIDIA binary Xorg driver

Does the file /etc/OpenCL/vendors/nvidia.icd exist? If not, please reinstall `nvidia-opencl-common

Yes it is exist and this is the output when i cat > libnvidia-opencl.so.1
But also in /etc/OpenCL/vendors there was another file pocl.icd
That was what i mentioned before. I changed its name and made a backupICD file and put it in there. Nvidia should be the main/applied one in the vendors right ?
But also i guess some nvidia configuration files in /etc/X11/xorg.conf directory. When i launch nvidia-xconfig its giving me some errors about cant write the file, and rewriting again. And maybe its all about like i said in first installition i purge removed nvidia, then i reinstalled the cuda.

If it will be just fine and fresh installition, i can do it. Pls just type down the correct commands to delete/remove them all with no doubt and safely. And install with the pure correction.

Thanks for your time

You should rather remove the file or uninstall the package it belongs to and not rename it in its directory.
Anything in /etc/xorg.conf is only writeable by root so the error you’re getting from nvidia-settings when run as user is expected. Furthermore, you shouldn’t mess around with that anyway, it also has zero influence on OpenCL.

I saw it in a forum before there, that was a solution for him. Like you said, i deleted the file. It was cuda’s i didnt install about it

I run sudo nvidia-xconf and it write the file but not in the /etc/xorg.conf it created /etc/X11/
And there is xorg.conf & xorg.conf.backup (nvidia-xconf created them) & xorg.conf.nvidia-xconfig-original
And also there is xorg.conf.d directory and inside there is another xorg.conf file. Maybe something is crossing.

xorg.conf has nothing to do with opencl. Don’t fiddle with it.

Ok whats next then ? When i try to use my GPU from CLi this error occurs:

cuInit(): unknown error

clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR

ATTENTION! No OpenCL, HIP or CUDA compatible platform found.

You are probably missing the OpenCL, CUDA or HIP runtime installation.

  • AMD GPUs on Linux require this driver:
    “AMDGPU” (21.50 or later) and “ROCm” (5.0 or later)
  • Intel CPUs require this runtime:
    “OpenCL Runtime for Intel Core and Intel Xeon Processors” (16.1.1 or later)
  • NVIDIA GPUs require this runtime and/or driver (both):
    “NVIDIA Driver” (440.64 or later)
    “CUDA Toolkit” (9.0 or later)

Now im really close to the solution. My nvcc version and nvidia version is not match. Yes, that common issue. But i didnt solve it. How can i solve it ?