Bug#889097: nvidia-libopencl1: Missing NVidia OpenCL platform

Andreas Beckmann anbe at debian.org
Tue Feb 6 10:45:32 UTC 2018


On 2018-02-05 22:35, Krzysztof Marczak wrote:
> Module loading mechanism seem to be working properly.
> I have tested it as you described:
> 
> $ sudo modprobe -r nvidia
> $ lsmod | grep nvidia           # there was no output
> $ sudo nvidia-modprobe -u
> $ lsmod | grep nvidia  #returned folowing:
> 
> nvidia_uvm            765952  0
> nvidia              13168640  1 nvidia_uvm
> 
> It loaded nvidia_uvm as it should be.
> After that I started sddm and tested OpenCL. It worked properly (like after
> sudo clinfo).
> So the problem is somewhere else.

There has been some progress made in #888952.

Looks like a capability issue.

Something new to try, no need to reboot or terminate X, we are just
playing around with the nvidia_uvm module:

$ sudo setcap cap_sys_module+ep /usr/bin/nvidia-modprobe
$ sudo modprobe -r nvidia_uvm
$ lsmod | grep nvidia_uvm		# expect empty
$ nvidia-modprobe -u			# NO sudo!
$ lsmod | grep nvidia_uvm		# expect result


Andreas



More information about the pkg-nvidia-devel mailing list