Hi Tomas,

 

Thanks for your input. For me, OpenCL is now working, (nearly) without 
workarounds, using the packages from Debian testing (nvidia driver v. 340).

 

My steps:

-          Debian testing, ocl-icd-libopencl1 is providing libOpenCL.so.1

-          Purge all nvidia packages

-          Reboot (to console)

-          Install nvidia-driver and  nvidia-opencl-icd

-          At this point clinfo shows OpenCL support, darktable can’t use it

-          Install nvidia-cuda-toolkit (or probably any other OpenCL 
development package)

 

Now darktable can use OpenCL.

 

I think there are two problem sources: 

1.       The non-free nvidia packages are not very robust when it comes to 
package installation. I had a working OpenCL installation at first, out of the 
box, using ocl-icd-libopencl1. Then I tried switching to nvidia-icd-libopencl1, 
the libOpenCL.so.1 from NVidia, and everything stopped working. I don’t think 
this is a bug in nvidia-icd-libopencl1, but probably a general instability in 
NVidia packaging: switching back to ocl-icd-libopencl1 alone didn’t help. 
Purging and reinstalling the nvidia packages helps. 

2.       And darktable doesn’t use the correct SONAME when it tries to load 
libOpenCL.so instead of libOpenCL.so.1. This works only if nvidia-cuda-toolkit 
(or, probably, any other OpenCL development package) is installed, which 
provides the symlink from libOpenCL.so to libOpenCL.so.1.

 

Cheers

Michael

 

 

Von: Tomas Sobek [mailto:sanka...@seznam.cz] 
Gesendet: Montag, 6. Oktober 2014 10:54
An: Michael Below
Cc: darktable-users
Betreff: Re: [Darktable-users] OpenCL detected by clinfo, not detected by dt, 
ideas?

 

Hi,
>From what I've read so far this may be slightly different situation. However I 
>thought sharing it may help in some way? I am running Mint 17 (based on Ubuntu 
>14.04). I just bought a new GeForce GTX 980 graphics card and installed 
>drivers 343 following these notes - 
>http://www.binarytides.com/install-nvidia-drivers-ubuntu-14-04/

sudo add-apt-repository ppa:xorg-edgers/ppa -y
sudo apt-get update
sudo apt-get install nvidia-343

Reboot the system and the drivers are working now:

glxinfo | grep OpenGL | grep renderer
OpenGL renderer string: GeForce GTX 980/PCIe/SSE2

Then I was searching high and low how to make OpenCL work with darktable and 
was trying lots of things. Following are the steps I have taken:
sudo apt-get install nvidia-settings
nvidia-settings

This utility is nice but doesn't show anything about OpenCL. Following packages 
showed up as recommended when installing package nvidia-343, so I tried to 
install them one by one, testing in between:

sudo apt-get install nvidia-opencl-icd-343
sudo apt-get install libcuda1-343
sudo apt-get install nvidia-343-uvm
sudo apt-get install bumblebee
sudo apt-get install nvidia-prime

At this point my graphics mode started failing on reboot. Luckily I was getting 
at least some degraded mode and could easily start removing:

sudo apt-get --purge remove nvidia-prime
sudo apt-get --purge remove bumblebee

At this point I got a stable system again. Then I found this:

https://developer.nvidia.com/cuda-downloads
http://developer.download.nvidia.com/compute/cuda/6_5/rel/docs/CUDA_Getting_Started_Linux.pdf

So I installed the toolkit as per the instructions, still no luck. Eventually I 
came across this thread: https://bbs.archlinux.org/viewtopic.php?id=178390

And the suggested workaround does the trick for me: Run darktable as root first 
and quit. Then start the application as normal user and it will detect OpenCL 
fine. Until the next reboot.

I assume I installed some stuff unnecessarily. Though I really couldn't find 
any concise notes what is needed. Later on, encouraged by today's posts on this 
email thread I tried:

sudo apt-get install clinfo
clinfo
Didn't get it to work - always displays output:
E: -30

I tried installing packages piece by piece from 
http://tech.kovacs-telekes.org/2014-07-29-darktable-opencl-nvidia-ubuntu-1404-mint-17
sudo apt-get install nvidia-modprobe opencl-headers
sudo apt-get install nvidia-343-dev 

A this point darktable runs fine without the root workaround first. However I 
have booting problems now. I ended up in black screen, no GUI. Press Esc to get 
Grub2 menu, check all disks, Ctrl+C, and it boots the rest of the way fine. 
Remove the suspect:

sudo apt-get --purge remove nvidia-modprobe
sudo apt-get autoremove
(removes bbswitch-dkms which was active)

Now I can reboot again without issues, but darktable requires the root 
workaround for OpenCL to work.
Cheers, Tomas

=

------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Darktable-users mailing list
Darktable-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-users

Reply via email to