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. 2018-02-05 6:01 GMT+01:00 Andreas Beckmann <a...@debian.org>: > Control: tag -1 moreinfo > > On 2018-02-02 17:19, Krzysztof Marczak wrote: > > Thank you for quick reply. > > You were right. It's look like it's the same problem as reported in > #888952 > > When after reboot I don't run clinfo as a root, the NVidia OpenCL > platform > > is not visible. After running 'sudo clinfo' it starts to work properly. > > It's reproducible all the time. > I cannot reproduce the problem here. (Tried the 384.111 driver from > stretch-backports, using both ocl-icl-libopencl1 and nvidia-libopencl1. > Only possible difference is that I'm running a rather old non-distro > kernel for unrelated reasons.) > > But it should be easy for you to test the module loading mechanism, > assuming you don't have X running using the nvidia driver: > > $ sudo modprobe -r nvidia # unload all nvidia modules > $ lsmod | grep nvidia # expect no output > $ nvidia-modprobe -u # NVIDIA's setuid root helper > $ lsmod | grep nvidia # expect nvidia and nvidia-uvm > > If that doesn't work for you, the setuid helper nvidia-modprobe is not > working properly on your system > > $ ls -la /usr/bin/nvidia-modprobe > > should print > > -rwsr-xr-x 1 root root ... > ^ ^^^^ > > > Andreas >