Project

General

Profile

Bug #8464

cannot process landscape raw with OpenCL and nvidia-drivers > 260 (Nikon D90)

Added by serge_gavrilov - over 8 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
High
Category:
General
Target version:
Start date:
Due date:
% Done:

100%

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

Description

darktable generally works quite nice using Open CL with nvidia-drivers 256.* (excepting bug #8462 that I previously posted here). But nvidia-drivers 256.* are quite buggy, so I have tried 260.*

With 260.* darktable can process raw images from my camera in portrait orientation, and cannot process raw images in landscape orientation.

The typical debug info is:

$ darktable -d opencl
[opencl_init] found 1 devices
[opencl_init] WARNING: your card only supports image sizes of 4096 x 32768
[opencl_init] WARNING: expect random crashes, especially with images larger than that.
[opencl_init] device 0: GeForce GTX 460
MAX_WORK_GROUP_SIZE: 1024
MAX_WORK_ITEM_DIMENSIONS: 3
MAX_WORK_ITEM_SIZES: [ 1024 1024 64 ]
[opencl_init] compiling program demosaic_ppg.cl' ..
[opencl_load_program] successfully loaded program from
/usr/share/darktable/kernels/demosaic_ppg.cl'
[opencl_build_program] successfully built program
[opencl_init] compiling program atrous.cl' ..
[opencl_load_program] successfully loaded program from
/usr/share/darktable/kernels/atrous.cl'
[opencl_build_program] successfully built program
[opencl_init] compiling program basic.cl' ..
[opencl_load_program] successfully loaded program from
/usr/share/darktable/kernels/basic.cl'
[opencl_build_program] successfully built program
[opencl_init] successfully initialized.
[opencl_create_kernel] successfully loaded kernel @exposure' (0) for device 0
[opencl_create_kernel] successfully loaded kernel @colorin' (1) for device 0
[opencl_create_kernel] successfully loaded kernel @highlights' (2) for device 0
[opencl_create_kernel] successfully loaded kernel @sharpen' (3) for device 0
[opencl_create_kernel] successfully loaded kernel @tonecurve' (4) for device 0
[opencl_create_kernel] successfully loaded kernel @basecurve' (5) for device 0
[opencl_create_kernel] successfully loaded kernel @eaw_decompose' (6) for device 0
[opencl_create_kernel] successfully loaded kernel @eaw_synthesize' (7) for device 0
[opencl_create_kernel] successfully loaded kernel @colorout' (8) for device 0
[opencl_create_kernel] successfully loaded kernel @whitebalance_1ui' (9) for device 0
[opencl_create_kernel] successfully loaded kernel @whitebalance_4f' (10) for device 0
[opencl_create_kernel] successfully loaded kernel @clip_and_zoom_demosaic_half_size' (11) for device 0
[opencl_create_kernel] successfully loaded kernel @ppg_demosaic_green' (12) for device 0
[opencl_create_kernel] successfully loaded kernel @green_equilibration' (13) for device 0
[opencl_create_kernel] successfully loaded kernel @pre_median' (14) for device 0
[opencl_create_kernel] successfully loaded kernel @ppg_demosaic_green_median' (15) for device 0
[opencl_create_kernel] successfully loaded kernel @ppg_demosaic_redblue' (16) for device 0
[opencl_create_kernel] successfully loaded kernel @clip_and_zoom' (17) for device 0
[pixelpipe_process] [preview] using device 0
[pixelpipe_process] [full] using device 0
[opencl copy_host_to_device] could not alloc/copy img buffer onto device 0: -40
[opencl alloc_device] could not alloc img buffer on device 0: -40
[opencl copy_host_to_device] could not alloc/copy img buffer onto device 0: -40
[pixelpipe_process] [full] using device 0
[pixelpipe_process] [full] using device 0
[pixelpipe_process] [full] using device 0
[pixelpipe_process] [full] using device 0
[pixelpipe_process] [full] using device 0
[opencl copy_host_to_device] could not alloc/copy img buffer onto device 0: -40
[opencl alloc_device] could not alloc img buffer on device 0: -40
[opencl copy_host_to_device] could not alloc/copy img buffer onto device 0: -40

Usually darktable crashes after the last error.

My camera is Nikon D90. The size of a photo is 4310x2868.

It seems that for images in landscape orientation 4310>4096 and therefore darktable crashes. For images in portrait orientation crash does not happen.

History

#1 Updated by serge_gavrilov - over 8 years ago

This discussion seems to be related with this problem:

http://forums.nvidia.com/index.php?showtopic=188134&st=20

#2 Updated by Jose Carlos Garcia Sogo over 8 years ago

Could you check with drivers version 270 or greater and report back? In that thread you point they say the bug is fixed in those drivers

#3 Updated by serge_gavrilov - over 8 years ago

270 does not fix the problem

#4 Updated by serge_gavrilov - over 8 years ago

As I know the only NVIDIA Open CL 1.1 driver is still 258.19

It is available for subscribers only. I have tried 258.19, it is absolutely unstable: X crashes when starting of darktable.

The latest drivers from 270.* series only supports OpenCL 1.0, and the bug is still reproducible

#5 Updated by Simon Spannagel over 7 years ago

  • Status changed from New to In Progress

Can somebody chech if this is still not working?

#6 Updated by serge_gavrilov - over 7 years ago

I do not try 1.0 but 0.9.3 works fine with latest nvidia blob 295.20.

#7 Updated by Ulrich Pegelow over 7 years ago

Replying to [comment:7 serge_gavrilov]:

I do not try 1.0 but 0.9.3 works fine with latest nvidia blob 295.20.

I can confirm it's solved. Not only due to a new nvidia driver but also due to DT doing tiling now. Can be closed.

Ulrich

#8 Updated by Simon Spannagel over 7 years ago

  • Status changed from In Progress to Fixed

Also available in: Atom PDF

Go to top