Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When running clinfo and opencl programs, both prompt that no platform can be found. #32

Open
2 tasks done
Linus-Voss opened this issue Mar 6, 2025 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@Linus-Voss
Copy link

NVIDIA Open GPU Kernel Modules Version

565.57.01

Please confirm this issue does not happen with the proprietary driver (of the same version). This issue tracker is only for bugs specific to the open kernel driver.

  • I confirm that this does not happen with the proprietary driver package.

Operating System and Version

Ubuntu 22.04.5 LTS

Kernel Release

Linux dc86184af8f0 6.8.0-52-generic #53~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 15 19:18:46 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • I am running on a stable kernel release.

Hardware: GPU

NVIDIA GeForce RTX 4090

Describe the bug

When I try to type clinfo, it shows

Number of platforms 0

Then I type "dmesg | grep NVRM", it reports error. So I started to think it might be a version mismatch issue.

[208153.361842] NVRM: API mismatch: the client has the version 570.86.15, but
[208153.361842] NVRM: this kernel module has the version 565.57.01. Please
[208153.361842] NVRM: make sure that this kernel module and all NVIDIA driver
[208153.361842] NVRM: components have the same version.
[208277.313837] NVRM: API mismatch: the client has the version 570.86.15, but
[208277.313837] NVRM: this kernel module has the version 565.57.01. Please
[208277.313837] NVRM: make sure that this kernel module and all NVIDIA driver
[208277.313837] NVRM: components have the same version.
[252188.677901] NVRM: API mismatch: the client has the version 570.86.15, but
[252188.677901] NVRM: this kernel module has the version 565.57.01. Please
[252188.677901] NVRM: make sure that this kernel module and all NVIDIA driver
[252188.677901] NVRM: components have the same version.
[253029.247613] NVRM: API mismatch: the client has the version 570.86.15, but
[253029.247613] NVRM: this kernel module has the version 565.57.01. Please
[253029.247613] NVRM: make sure that this kernel module and all NVIDIA driver
[253029.247613] NVRM: components have the same version.

But when I checked the driver and kernel versions, I didn't find any mismatch. What is the cause of this or do I need to provide more information?
nvidia-smi:

NVIDIA-SMI 565.57.01 Driver Version: 565.57.01 CUDA Version: 12.7

cat /proc/driver/nvidia/version

NVRM version: NVIDIA UNIX Open Kernel Module for x86_64 565.57.01 Release Build (root@inno) Tue Feb 18 09:13:32 AM UTC 2025
GCC version: gcc version 12.3.0 (Ubuntu 12.3.0-1ubuntu1~22.04)

To Reproduce

None

Bug Incidence

Always

nvidia-bug-report.log.gz

None

More Info

None

@Linus-Voss Linus-Voss added the bug Something isn't working label Mar 6, 2025
@Ph0rk0z
Copy link

Ph0rk0z commented Mar 9, 2025

You have some part of 570.86.15 installed. Mine shows platforms 0 because drivers do not match and I can't install cuda runtime properly. Yet another reason why taking random driver versions by themselves and patching them is shitty.

@Ph0rk0z
Copy link

Ph0rk0z commented Mar 13, 2025

ok.. so missing file is under /etc/OpenCL/vendors

you gotta make an nvidia.icd with libnvidia-opencl.so.1

Also need the mesa ICD loader package that creates the folder and allows clinfo to run. This file is in the arch package but for ubuntu MIA. Was hard to track down but now my openCL is working, even with the mismatched driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants