Thanks for the guide!
However, it doesn't help to solve my problem in Debian. If anyone knows
a solution for Debian (possibly without fiddling with scripts), I'm
glad to hear from you.
Il giorno lun 28 lug 2014 alle 21:48, KOVÁCS István
<[email protected]> ha scritto:
[...]
Now, in order to make use of said OpenCL kernels, darktable needs the
system library libOpenCL.so which must be accessible to the system's
dynamic loader (ld.so). Reason is that the function flow is like this:
darktable -> libOpenCL.so -> libnvidia-opencl.so.1 -> kernel driver
-> hardware
libOpenCL.so is contained in nvidia-opencl-dev
libOpenCL.so will read the vendor-specific information file (ICD file)
to find the library which contains the (vendor-specific)
implementation.
nvidia-opencl-icd-* contains both /etc/OpenCL/vendors/nvidia.icd and
the library libnvidia-opencl.so.1 it points to.
On my system, /usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1 is a
symbolic link to libnvidia-opencl.so.331.89, which is the actual
implementation.
so far so good in Debian
The required kernel modules are nvidia and nvidia_uvm; they are
provided by the modules nvidia-331 and nvidia-331-uvm, respectively.
You also need device files (/dev/nvidia*). The easiest way to set them
up and make sure all modules are loaded is installing the
nvidia-modprobe package (which, at the time of this writing, is only
available for 'utopic', but works well with 'trusty' and Mint 17).
Grab it at http://packages.ubuntu.com/utopic/nvidia-modprobe
The problem in Debian is here.
$ nvidia-smi
Wed Jul 30 08:59:10 2014
+------------------------------------------------------+
| NVIDIA-SMI 340.24 Driver Version: 340.24 |
$ lsmod | grep nvidia
nvidia 10477797 39
i2c_core 24228 2 i2c_i801,nvidia
$ ls -l /dev/nvidia*
crw-rw-rw- 1 root root 195, 0 lug 30 08:43 /dev/nvidia0
crw-rw-rw- 1 root root 195, 255 lug 30 08:43 /dev/nvidiact
I have nvidia-modprobe installed but device files are not created.
To summarise, the packages I have installed are:
nvidia-331 / 331.89-0ubuntu1~xedgers14.04.2
nvidia-331-dev / 331.89-0ubuntu1~xedgers14.04.2
nvidia-331-uvm / 331.89-0ubuntu1~xedgers14.04.2
nvidia-libopencl1-331 / 331.89-0ubuntu1~xedgers14.04.2
nvidia-modprobe / 340.24-1
nvidia-opencl-dev:amd64 / 5.5.22-3ubuntu1
nvidia-opencl-icd-331 / 331.89-0ubuntu1~xedgers14.04.2
nvidia-settings / 340.24-0ubuntu1~xedgers14.04.1
nvidia-settings-304 / 340.24-0ubuntu1~xedgers14.04.1
nvidia-libopencl1-331 / 331.89-0ubuntu1~xedgers14.04.2
nvidia-opencl-dev:amd64 / 5.5.22-3ubuntu1
nvidia-opencl-icd-331 / 331.89-0ubuntu1~xedgers14.04.2
opencl-headers / 1.2-2013.10.23-1
These are my packages installed:
$ aptitude search -F '%p %V %v' ~i^nvidia
nvidia-alternative 340.24-2
340.24-2
nvidia-detect 340.24-2
340.24-2
nvidia-driver 340.24-2
340.24-2
nvidia-installer-cleanup 20131102+1
20131102+1
nvidia-kernel-3.14-1-amd64 331.79+1+1+3.1
331.79+1+1+3.1
nvidia-kernel-amd64 331.79+3.14+1
331.79+3.14+1
nvidia-kernel-common 20131102+1
20131102+1
nvidia-kernel-dkms 340.24-2
340.24-2
nvidia-libopencl1 340.24-2
340.24-2
nvidia-modprobe 340.24-1
340.24-1
nvidia-opencl-common 340.24-2
340.24-2
nvidia-opencl-dev 5.5.22-4
5.5.22-4
nvidia-opencl-icd 340.24-2
340.24-2
nvidia-smi 340.24-2
340.24-2
nvidia-support 20131102+1
20131102+1
nvidia-vdpau-driver 340.24-2
340.24-2
$ aptitude search -F '%p %V %v' ~i^opencl
opencl-headers 1.2-2014.04.13 1.2-2014.04.13
My list of nvidia-related modules:
nvidia, nvidia_uvm
My nvidia-related device files:
crw-rw-rw- 1 root root 195, 0 Jul 28 21:13 /dev/nvidia0
crw-rw-rw- 1 root root 195, 255 Jul 28 21:13 /dev/nvidiactl
crw-rw-rw- 1 root root 250, 0 Jul 28 21:13 /dev/nvidia-uvm
Now I'm reading this bug report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747366
nvidia-uvm is not loaded at startup, even if it's installed:
# modinfo nvidia-uvm
filename: /lib/modules/3.14-1-amd64/updates/dkms/nvidia-uvm.ko
supported: external
license: MIT
depends: nvidia
vermagic: 3.14-1-amd64 SMP mod_unload modversions
Let's load it:
# modprobe -v nvidia-uvm
insmod /lib/modules/3.14-1-amd64/updates/dkms/nvidia-current.ko
insmod /lib/modules/3.14-1-amd64/updates/dkms/nvidia-uvm.ko
Now that I've loaded it, it shows up on lsmod. IIUC the following
message says that it creates the device number 250:
# dmesg | grep nvidia_uvm
[ 1670.879684] nvidia_uvm: Loaded the UVM driver, major device number
250
But it's not actually created:
# ls -l /dev | grep 250
#
So two problems:
1. nvidia-uvm is not loaded at startup
2. when it's loaded, it cannot create the device file
Now I'm lost and I don't know if/where I should report these problems.
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users