Am 25.10.2014 um 18:09 schrieb Hans Petter Birkeland:
> Another thread on this list suggested that I needed nvidia-cuda-toolkit
> installed, and so I did. libOpenCL now loads, but I'm stuck. This is the
> relevent part of the output from 'optirun darktable -d opencl':
> 
> [opencl_init] trying to load opencl library: '<system default>'
> [opencl_init] opencl library 'libOpenCL' found on your system and loaded
> [opencl_init] could not get platforms: -1001
> [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
> [opencl_init] initial status of opencl enabled flag is OFF.
> 
> 
> The problem is the line "could not get platforms: -1001"
> 
> /etc/OpenCL/vendors/nvidia.icd points to libnvidia-opencl.so.1 which is a
> symlink to libnvidia-opencl.so.340.46. One suggestion I found was that
> nvidia.icd should point to libcuda.so. I tried that, but it didn't make any
> difference.
> 


I can only share with you how that looks like on my PC not with Optimus but 
Geforce. 
I have debian testing and this is what I have installed: 

3# dpkg -l nvidia* | grep ii
ii  nvidia-alternative              340.46-3     amd64        allows the 
selection of NVIDIA as GLX provider
ii  nvidia-driver                   340.46-3     amd64        NVIDIA metapackage
ii  nvidia-glx                      340.46-3     amd64        transition to 
nvidia-driver
ii  nvidia-installer-cleanup        20131102+2   amd64        cleanup after 
driver installation with the nvidia-installer
ii  nvidia-kernel-common            20131102+2   amd64        NVIDIA binary 
kernel module support files
ii  nvidia-kernel-dkms              340.46-3     amd64        NVIDIA binary 
kernel module DKMS source
ii  nvidia-modprobe                 340.46-1     amd64        utility to load 
NVIDIA kernel modules and create device nodes
ii  nvidia-opencl-common            340.46-3     amd64        NVIDIA OpenCL 
driver
ii  nvidia-opencl-icd:amd64         340.46-3     amd64        NVIDIA OpenCL 
installable client driver (ICD)
ii  nvidia-settings                 340.46-2     amd64        tool for 
configuring the NVIDIA graphics driver
ii  nvidia-smi                      340.46-3     i386         NVIDIA System 
Management Interface
ii  nvidia-support                  20131102+2   amd64        NVIDIA binary 
graphics driver support files
ii  nvidia-vdpau-driver:amd64       340.46-3     amd64        Video Decode and 
Presentation API for Unix - NVIDIA driver

When I start DT the relevant output is:

[opencl_init] could not find opencl runtime library 'libOpenCL'
[opencl_init] could not find opencl runtime library 'libOpenCL.so'
[opencl_init] found opencl runtime library 'libOpenCL.so.1'
[opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded
[opencl_init] found 1 platform
[opencl_init] found 1 device
[opencl_init] device 0 `GeForce GTX 750 Ti' has sm_20 support.
[opencl_init] device 0 `GeForce GTX 750 Ti' supports image sizes of 32768 x 
32768
[opencl_init] device 0 `GeForce GTX 750 Ti' allows GPU memory allocations of up 
to 511MB
[opencl_init] device 0: GeForce GTX 750 Ti 
     GLOBAL_MEM_SIZE:          2048MB
     MAX_WORK_GROUP_SIZE:      1024
     MAX_WORK_ITEM_DIMENSIONS: 3
     MAX_WORK_ITEM_SIZES:      [ 1024 1024 64 ]
     DRIVER_VERSION:           340.46
     DEVICE_VERSION:           OpenCL 1.1 CUDA

Furthermore:
11# cat /etc/OpenCL/vendors/nvidia.icd 
libnvidia-opencl.so.1

and

13# locate libnvidia-opencl.so.1 | xargs ls -l
lrwxrwxrwx 1 root root 62 Nov  7 19:01 
/etc/alternatives/nvidia--libnvidia-opencl.so.1-x86_64-linux-gnu -> 
/usr/lib/x86_64-linux-gnu/nvidia/current/libnvidia-opencl.so.1
lrwxrwxrwx 1 root root 64 Nov  7 19:01 
/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1 -> 
/etc/alternatives/nvidia--libnvidia-opencl.so.1-x86_64-linux-gnu
lrwxrwxrwx 1 root root 26 Okt 22 00:18 
/usr/lib/x86_64-linux-gnu/nvidia/current/libnvidia-opencl.so.1 -> 
libnvidia-opencl.so.340.46

Have you tried to use strace to see if the right opencl library is loaded?

Matthias





------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users

Reply via email to