Am 24.07.2014 19:19, schrieb Federico Bruni:
>> Then the kernel driver needs to be loaded. Newer nvidia systems need
>> two
>> kernel modules: nvidia and nvidia_uvm.
>>
>> Check with 'lsmod | egrep nvidia' if both are there.
>>
>
> This is not ok. I can manually run 'modprobe nvidia-uvm' but it will
> last only for the current session.
>
>> If this is OK there need to be device special files for the vendor
>> specific library to communicate with your kernel drivers. You need to
>> see something like that:
>>
>> crw-rw----+ 1 root video 195,   0 24. Jul 18:28 /dev/nvidia0
>> crw-rw----+ 1 root video 195, 255 24. Jul 18:28 /dev/nvidiactl
>> crw-rw-rw-  1 root root  249,   0 24. Jul 18:28 /dev/nvidia-uvm
>>
>> Check that your account has write access to all of them. In my case
>> users who want to use OpenCL need to be member of group video.
>>
>
> I'm missing nvidia-uvm. Who should create that device?

My system is not representative in that my primary GPU is an AMD which 
also runs X11 and my nvidia card is used only as a secondary device for 
GPGPU. That means I need to make sure manually that kernel modules 
nvidia and nvidia-uvm get loaded at boot time. I do this by adding those 
two kernels to the list of kernels to be automatically loaded (in 
/etc/sysconfig/kernel on my opensuse system).

In order to create the device special files I have the following line in 
/etc/modprobe.d/99-local.conf

install nvidia /sbin/modprobe --ignore-install nvidia && { /bin/sh 
/etc/nvidia/nvidia-init.sh; }

And I have installed a script /etc/nvidia/nvidia-init.sh:

#!/bin/bash

# Count the number of NVIDIA controllers found.
N3D=`/sbin/lspci | grep -i NVIDIA | grep "3D controller" | wc -l`
NVGA=`/sbin/lspci | grep -i NVIDIA | grep "VGA compatible controller" | 
wc -l`

N=`expr $N3D + $NVGA - 1`
for i in `seq 0 $N`; do
   mknod -m 660 /dev/nvidia$i c 195 $i;
   chown root.video /dev/nvidia$i
done

mknod -m 660 /dev/nvidiactl c 195 255
chown root.video /dev/nvidiactl

mknod -m 666 /dev/nvidia-uvm c 249 0
chown root.root /dev/nvidia-uvm


As said all this is primarily needed because my nvidia card is a 
secondary gpu. Normally all this should be done automatically while your 
X11 starts up.

Ulrich


> I'm still affected by this bug?
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746643
>
>
>> @Federico:
>>
>> The error number -1001 from your system tells that even though you have
>> libOpenCL.so one of the other requirements above were not met.
>>
>> Ulrich
>

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users

Reply via email to