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

Krzysztof Marczak buddhi1980 at gmail.com
Tue Feb 6 19:15:27 UTC 2018


I have tested exactly as you described without terminating X

$ sudo modprobe -r nvidia_uvm
$lsmod | grep nvidia_uvm               # empty result
$ nvidia-modprobe -u                    #without sudo
$ lsmod | grep nvidia_uvm               # empty result! (not like it
was expected)

$ sudo  nvidia-modprobe -u  #this time with sudo -> modules are loaded
nvidia_uvm            765952  0
nvidia              13168640  1447 nvidia_modeset,nvidia_uvm


2018-02-06 11:45 GMT+01:00 Andreas Beckmann <anbe at debian.org>:
> 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