Project

General

Profile

Bug #10244

OpenCL disabled but everything is working fine on my computer

Added by Didier B. about 5 years ago. Updated about 5 years ago.

Status:
Fixed
Priority:
Low
Assignee:
-
Category:
General
Start date:
12/23/2014
Due date:
% Done:

100%

Estimated time:
Affected Version:
1.6.0
System:
Ubuntu
bitness:
64-bit
hardware architecture:
amd64/x86

Description

OpenCL disabled but should be available. I can't tell if this is a new bug or not, since it's the first time I actually investigate for this option.

My hw and sw:
Core 2 Duo E8400
8GB RAM
GeForce GTX 560TI 1GB
Ubuntu Linux 14.04 LTS with Nvidia proprietary drivers (331.113 tested and recommended by ubuntu)
Darktable 1.6.1

The drivers are working properly:
$ glxinfo | grep 'direct rendering'
direct rendering: Yes

... and I just played a game of DOTA2 Linux and everything was ok.

Here is the debugging message:

$ darktable -d opencl
[opencl_init] opencl related configuration options:
[opencl_init]
[opencl_init] opencl: 1
[opencl_init] opencl_library: ''
[opencl_init] opencl_memory_requirement: 768
[opencl_init] opencl_memory_headroom: 300
[opencl_init] opencl_device_priority: '*/!0,*/*/*'
[opencl_init] opencl_size_roundup: 16
[opencl_init] opencl_async_pixelpipe: 0
[opencl_init] opencl_synch_cache: 0
[opencl_init] opencl_number_event_handles: 25
[opencl_init] opencl_micro_nap: 1000
[opencl_init] opencl_use_pinned_memory: 0
[opencl_init] opencl_use_cpu_devices: 0
[opencl_init] opencl_avoid_atomics: 0
[opencl_init] opencl_omit_whitebalance: 0
[opencl_init]
[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] 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.

So as I understood, it can find the libOpenCL.so.1, but can't use it.

Here is a list of every files that contains opencl:
$ locate opencl
/usr/lib/i386-linux-gnu/libnvidia-opencl.so.1
/usr/lib/i386-linux-gnu/libnvidia-opencl.so.331.113
/usr/lib/libreoffice/program/libscopencllo.so
/usr/lib/nvidia-319/libnvidia-opencl.so.1
/usr/lib/python3/dist-packages/unity_scope_openclipart-0.1.egg-info
/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.1
/usr/lib/x86_64-linux-gnu/libnvidia-opencl.so.331.113
/usr/lib32/nvidia-319/libnvidia-opencl.so.1
/usr/share/app-install/desktop/openclipart.desktop
/usr/share/app-install/desktop/openclonk:openclonk.desktop
/usr/share/dbus-1/services/unity-scope-openclipart.service
/usr/share/doc/nvidia-libopencl1-331
/usr/share/doc/nvidia-opencl-icd-331
/usr/share/doc/unity-scope-openclipart
/usr/share/doc/nvidia-libopencl1-331/changelog.Debian.gz
/usr/share/doc/nvidia-libopencl1-331/copyright
/usr/share/doc/nvidia-opencl-icd-331/changelog.Debian.gz
/usr/share/doc/nvidia-opencl-icd-331/copyright
/usr/share/doc/unity-scope-openclipart/changelog.Debian.gz
/usr/share/doc/unity-scope-openclipart/copyright
/usr/share/gtksourceview-3.0/language-specs/opencl.lang
/usr/share/icons/unity-icon-theme/places/svg/service-openclipart.svg
/usr/share/kde4/apps/katepart/syntax/opencl.xml
/usr/share/unity/scopes/graphics/openclipart.scope
/usr/share/unity-scopes/openclipart
/usr/share/unity-scopes/openclipart/__init__.py
/usr/share/unity-scopes/openclipart/unity_openclipart_daemon.py
/var/cache/apt/archives/nvidia-libopencl1-331_331.113-0ubuntu0.0.4_amd64.deb
/var/cache/apt/archives/nvidia-opencl-icd-331_331.113-0ubuntu0.0.4_amd64.deb
/var/lib/dpkg/info/nvidia-libopencl1-331.list
/var/lib/dpkg/info/nvidia-libopencl1-331.md5sums
/var/lib/dpkg/info/nvidia-libopencl1-331.postinst
/var/lib/dpkg/info/nvidia-libopencl1-331.postrm
/var/lib/dpkg/info/nvidia-libopencl1-331.shlibs
/var/lib/dpkg/info/nvidia-opencl-icd-331.conffiles
/var/lib/dpkg/info/nvidia-opencl-icd-331.list
/var/lib/dpkg/info/nvidia-opencl-icd-331.md5sums
/var/lib/dpkg/info/nvidia-opencl-icd-331.postinst
/var/lib/dpkg/info/nvidia-opencl-icd-331.postrm
/var/lib/dpkg/info/nvidia-opencl-icd-331.shlibs
/var/lib/dpkg/info/unity-scope-openclipart.list
/var/lib/dpkg/info/unity-scope-openclipart.md5sums

Thanks.

History

#1 Updated by Igor Kuzmin about 5 years ago

Maybe you should complain to your distro developers? It's not a darktable issue, I don't know why it's so hard for Ubuntu to get it right.

#2 Updated by Ulrich Pegelow about 5 years ago

You may want to have a look here [[http://www.darktable.org/usermanual/ch09s02s04.html.php]] in order to find out the reason for your problems. Please also visit the darktable-users mailing list. There are several threads that deal with problems similar to yours.

#3 Updated by Didier B. about 5 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Fixed

Ulrich Pegelow wrote:

You may want to have a look here [[http://www.darktable.org/usermanual/ch09s02s04.html.php]] in order to find out the reason for your problems. Please also visit the darktable-users mailing list. There are several threads that deal with problems similar to yours.

Thank you, your answer was very useful.

Here is what I did :
sudo apt-get install nvidia-modprobe
sudo nvidia-modprobe

And it worked.

Also available in: Atom PDF

Go to top