-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
OpenCL doesn't work with Nvidia #325378
Comments
Could you try disabling the GSP firmware as suggested in #324252 (comment) |
No luck,
|
Thats quite a lot of custom parameters for the nvidia kernel module... Lets validate some things:
|
❯ cat /run/opengl-driver/etc/OpenCL/vendors/nvidia.icd
/nix/store/fgh9qwggvjlwqdyyyx60zgx7hybww2py-nvidia-x11-555.58.02-6.6.36/lib/libnvidia-opencl.so.1 Setting the
Ahha, the last command's output includes this:
|
I get that error as well, but after that it loads |
No, that is the last line I'm pretty sure. Here is the full output in case I missed anything anyway: http://0x0.st/XBhc.txt |
Looks like boot.kernelParams = ["nvidia.NVreg_PreserveVideoMemoryAllocations=1"]; solves the issue. Thanks to elFarto/nvidia-vaapi-driver#299 (comment) Should I close? |
If you are no longer experiencing the issue, you can close it. That kernel parameter is enabled by the
As a personal curiosity, does this issue only happen if you suspended the machine? Or does it happen after a clean boot? |
Huhh?? But I had that enabled. |
Now it works without. I have no clue what fixed it then. The only other thing I did recently is update nixpkgs. |
Oh you're on nixos-unstable, is it possible you did an upgrade that updated the nvidia driver on a running system? Because that definitely isn't supported by nvidia. EDIT: since you changed the kernel parameter, it might be the full restart that fixed it. |
No, nothing to do with that. The kernel parameter has always been set, since I had power management enabled. The reason I assume the update fixed it is because I recently did an update which I hadn't done in a long time, and I haven't done anything else related that could have fixed it. Well either way, I'm closing. |
For the record, this is what solved the problem for me in the end:
|
Yes, |
I believe I needed the combination of open = false and the |
Describe the bug
OpenCL apps don't work with the Nvidia driver, even though the library files are clearly preset in
/run/opengl-drivers
Steps To Reproduce
Steps to reproduce the behavior:
clinfo
Expected behavior
A platform is returned by the driver, and the program works correctly.
Additional context
I have tried adding
ocl-icd
tohardware.graphics.extraPackages
, but no luck.Notify maintainers
@Kiskae @NickCao
Metadata
Note: I am on the LTS kernel, because wlroots compositors and Hyprland don't work on latest+Nvidia for some reason.
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: