Hi, I am not certain, but I belive the -6 means "CL_OUT_OF_HOST_MEMORY", which means darktable was not able to allocate enough memory on your computer. You could try to verify this, by starting darktable while another program is using a good amoint of your memory. If I am correct, this should result in no OpenCL, but this would also mean you can use your GPU if you keep your memory free.
Regards, Holger On February 7, 2020 10:34:09 PM GMT+01:00, "KOVÁCS István" <[email protected]> wrote: >Hi, > >Sometimes, I encounter a really strange situation. On starting >darktable, I get "could not create context for device 0: -6", and >OpenCL is not available. I quit darktable, restart without doing >anything (same terminal session; I don't close other programs, >either), re-launch, and everything is OK. > >It's not a huge problem, but annoying. Should I change the headroom? >Any ideas? (Note: the PC itself is an old machine with 4 GB of RAM.) > >Thanks in advance, >Kofa > >Logs from console: >Common part (copied from case #1, but I reviewed it line-by-line; only >the timestamps are different between #1 and #2): >0.303178 [opencl_init] opencl related configuration options: >0.303208 [opencl_init] >0.303218 [opencl_init] opencl: 1 >0.303228 [opencl_init] opencl_scheduling_profile: 'very fast GPU' >0.303236 [opencl_init] opencl_library: '' >0.303244 [opencl_init] opencl_memory_requirement: 600 >0.303253 [opencl_init] opencl_memory_headroom: 800 >0.303261 [opencl_init] opencl_device_priority: '*/!0,*/*/*' >0.303270 [opencl_init] opencl_mandatory_timeout: 200 >0.303278 [opencl_init] opencl_size_roundup: 16 >0.303285 [opencl_init] opencl_async_pixelpipe: 0 >0.303292 [opencl_init] opencl_synch_cache: active module >0.303300 [opencl_init] opencl_number_event_handles: 25 >0.303309 [opencl_init] opencl_micro_nap: 1000 >0.303316 [opencl_init] opencl_use_pinned_memory: 0 >0.303323 [opencl_init] opencl_use_cpu_devices: 0 >0.303330 [opencl_init] opencl_avoid_atomics: 0 >0.303336 [opencl_init] >0.304356 [opencl_init] found opencl runtime library 'libOpenCL' >0.304405 [opencl_init] opencl library 'libOpenCL' found on your system >and loaded >0.380925 [opencl_init] found 1 platform >0.380964 [opencl_init] found 1 device >0.381786 [opencl_init] device 0 `GeForce GTX 1060 6GB' has sm_20 >support. >0.382239 [opencl_init] device 0 `GeForce GTX 1060 6GB' supports image >sizes of 16384 x 32768 >0.382253 [opencl_init] device 0 `GeForce GTX 1060 6GB' allows GPU >memory allocations of up to 1517MB >[opencl_init] device 0: GeForce GTX 1060 6GB > GLOBAL_MEM_SIZE: 6070MB > MAX_WORK_GROUP_SIZE: 1024 > MAX_WORK_ITEM_DIMENSIONS: 3 > MAX_WORK_ITEM_SIZES: [ 1024 1024 64 ] > DRIVER_VERSION: 430.50 > DEVICE_VERSION: OpenCL 1.2 CUDA > >#1: >0.407211 [opencl_init] could not create context for device 0: -6 >0.408209 [opencl_init] no suitable devices found. >0.408287 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system. >0.408363 [opencl_init] initial status of opencl enabled flag is OFF. > >#2: >0.576751 [opencl_init] options for OpenCL compiler: -w >-DNVIDIA_SM_20=1 -DNVIDIA=1 >-I"/home/kofa/darktable-master/share/darktable/kernels" >0.577849 [opencl_init] compiling program `demosaic_ppg.cl' .. >[... and so on, loading normally ...] > >Version info: Linux eagle 5.3.0-29-generic #31-Ubuntu SMP Fri Jan 17 >17:27:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux >libnvidia-* 430.50-0ubuntu2 (libnvidia-cfg1, libnvidia-common, >libnvidia-compute, libnvidia-compute, libnvidia-decode, >libnvidia-decode, libnvidia-encode, libnvidia-encode, libnvidia-fbc1, >libnvidia-fbc1, libnvidia-gl, libnvidia-gl, libnvidia-ifr1, >libnvidia-ifr1) >nvidia-* 430.50-0ubuntu2 (nvidia-compute-utils, nvidia-dkms, >nvidia-driver, nvidia-kernel-common, nvidia-kernel-source) >nvidia-opencl-dev:amd64 10.1.168-1build1 >____________________________________________________________________________ >darktable user mailing list >to unsubscribe send a mail to >[email protected] ____________________________________________________________________________ darktable user mailing list to unsubscribe send a mail to [email protected]
