Project

General

Profile

Bug #11840

Darktable fails to run with CUDA OpenCL NVIDIA GTX750

Added by Tomas Kijas 8 months ago. Updated 8 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
OpenCL
Target version:
-
Start date:
11/30/2017
Due date:
% Done:

0%

Affected Version:
2.2.5
System:
Ubuntu
bitness:
64-bit
hardware architecture:
amd64/x86

Description

Darktable fails to run with CUDA OpenCL NVIDIA GTX750.
CUDA installed, passed by deviceQuery etc.
Output:

tomas@ubuntu-bilepc:/usr/local/cuda-9.0/samples/1_Utilities/deviceQuery$ darktable -d opencl
[opencl_init] opencl related configuration options:
[opencl_init]
opencl: 1
[opencl_init] opencl_library: ''
[opencl_init] opencl_memory_requirement: 768
[opencl_init] opencl_memory_headroom: 700
[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_enable_markesteijn: 1
[opencl_init]
found opencl runtime library 'libOpenCL'
[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.

History

#1 Updated by Tomas Kijas 8 months ago

So I purged all nvidia* and cuda* packages and installed them into my Ubuntu again.

Results are here, different error.

tomas@ubuntu-bilepc:~/Stažené$ 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: 700
[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_enable_markesteijn: 1
[opencl_init]
[opencl_init] found opencl runtime library 'libOpenCL'
[opencl_init] opencl library 'libOpenCL' found on your system and loaded
[opencl_init] found 1 platform
[opencl_init] found 1 device
[opencl_init] device 0 `GeForce GTX 750' has sm_20 support.
[opencl_init] device 0 `GeForce GTX 750' supports image sizes of 16384 x 16384
[opencl_init] device 0 `GeForce GTX 750' allows GPU memory allocations of up to 499MB
[opencl_init] device 0: GeForce GTX 750
GLOBAL_MEM_SIZE: 1999MB
MAX_WORK_GROUP_SIZE: 1024
MAX_WORK_ITEM_DIMENSIONS: 3
MAX_WORK_ITEM_SIZES: [ 1024 1024 64 ]
DRIVER_VERSION: 384.98
DEVICE_VERSION: OpenCL 1.2 CUDA
[opencl_init] could not create context for device 0: 999
[opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
[opencl_init] initial status of opencl enabled flag is OFF.

The point is, it is similar to this bug #11599 https://redmine.darktable.org/issues/11599

AND

it also works with OpenCL when I run Darktable as a root.

BUT

the resolution the reporter stated doesn't work for me.

#2 Updated by Ulrich Pegelow 8 months ago

In order for NVIDIA's OpenCL system to work you need to have the binary nvidia-modprobe installed and it needs to be setuid root (distributions tend to remove the SUID bit, so you might need to re-apply it manually). nvidia-modprobe will create the missing device special files in /dev. Those are ug+rw,o-rw and belong to root/video. A normal user in order to use OpenCL needs to be member of group video.

Also available in: Atom PDF