Hi guys, I’m using DT from git/master and noticed that OpenCL as not enabled. Actually it’s even not available while with DT 2.6 it’s available and ON (and I do feel the difference).
So I closed the master version and restarted it using my terminal. I’m not sure why extended.cl failed to compile or why it cannot find common.h which actually is at that location as well. Any hint ? Thanks ahead of time for your support ! Very much appreciated. Sebastien Here is the full log I got: --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- $ /Applications/darktable.app/Contents/MacOS/darktable -d opencl (process:977): GLib-GObject-CRITICAL **: 23:52:54.814: g_object_set: assertion 'G_IS_OBJECT (object)' failed (process:977): Gtk-WARNING **: 23:52:54.822: Locale not supported by C library. Using the fallback 'C' locale. 0.052796 [opencl_init] opencl related configuration options: 0.052814 [opencl_init] 0.052816 [opencl_init] opencl: 1 0.052819 [opencl_init] opencl_library: '' 0.052821 [opencl_init] opencl_memory_requirement: 768 0.052824 [opencl_init] opencl_memory_headroom: 300 0.052826 [opencl_init] opencl_device_priority: '*/!0,*/*/*' 0.052828 [opencl_init] opencl_mandatory_timeout: 200 0.052830 [opencl_init] opencl_size_roundup: 16 0.052832 [opencl_init] opencl_async_pixelpipe: 0 0.052834 [opencl_init] opencl_synch_cache: 0 0.052836 [opencl_init] opencl_number_event_handles: 25 0.052839 [opencl_init] opencl_micro_nap: 1000 0.052842 [opencl_init] opencl_use_pinned_memory: 0 0.052844 [opencl_init] opencl_use_cpu_devices: 0 0.052846 [opencl_init] opencl_avoid_atomics: 0 0.052848 [opencl_init] 0.053260 [opencl_init] found opencl runtime library '/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL' 0.053293 [opencl_init] opencl library '/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL' found on your system and loaded 0.053298 [opencl_init] found 1 platform 0.057838 [opencl_init] found 2 devices 0.057872 [opencl_init] discarding CPU device 0 `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz'. 0.057888 [opencl_init] device 1 `AMD Radeon Pro 580 Compute Engine' supports image sizes of 16384 x 16384 0.057891 [opencl_init] device 1 `AMD Radeon Pro 580 Compute Engine' allows GPU memory allocations of up to 2048MB [opencl_init] device 1: AMD Radeon Pro 580 Compute Engine GLOBAL_MEM_SIZE: 8192MB MAX_WORK_GROUP_SIZE: 256 MAX_WORK_ITEM_DIMENSIONS: 3 MAX_WORK_ITEM_SIZES: [ 256 256 256 ] DRIVER_VERSION: 1.2 (Nov 12 2018 21:13:18) DEVICE_VERSION: OpenCL 1.2 0.058451 [opencl_init] options for OpenCL compiler: -cl-mad-enable -DUNKNOWN=1 -I/Applications/darktable.app/Contents/Resources/share/darktable/kernels 0.058568 [opencl_init] compiling program `demosaic_ppg.cl' .. 0.058867 [opencl_load_program] loaded cached binary program from file `/Users/seb/.cache/darktable/cached_kernels_for_AMDRadeonPro580ComputeEngine_12Nov122018211318/demosaic_ppg.cl.bin' 0.058872 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/demosaic_ppg.cl' 0.059112 [opencl_build_program] successfully built program 0.059119 [opencl_build_program] BUILD STATUS: 0 0.059122 BUILD LOG: 0.059123 0.059131 [opencl_init] compiling program `atrous.cl' .. 0.059234 [opencl_load_program] loaded cached binary program from file `/Users/seb/.cache/darktable/cached_kernels_for_AMDRadeonPro580ComputeEngine_12Nov122018211318/atrous.cl.bin' 0.059238 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/atrous.cl' 0.059295 [opencl_build_program] successfully built program 0.059300 [opencl_build_program] BUILD STATUS: 0 0.059303 BUILD LOG: 0.059304 0.059309 [opencl_init] compiling program `basic.cl' .. 0.060193 [opencl_load_program] loaded cached binary program from file `/Users/seb/.cache/darktable/cached_kernels_for_AMDRadeonPro580ComputeEngine_12Nov122018211318/basic.cl.bin' 0.060197 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/basic.cl' 0.060625 [opencl_build_program] successfully built program 0.060630 [opencl_build_program] BUILD STATUS: 0 0.060632 BUILD LOG: 0.060634 0.060638 [opencl_init] compiling program `blendop.cl' .. 0.060915 [opencl_load_program] loaded cached binary program from file `/Users/seb/.cache/darktable/cached_kernels_for_AMDRadeonPro580ComputeEngine_12Nov122018211318/blendop.cl.bin' 0.060920 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/blendop.cl' 0.061056 [opencl_build_program] successfully built program 0.061061 [opencl_build_program] BUILD STATUS: 0 0.061063 BUILD LOG: 0.061065 0.061069 [opencl_init] compiling program `highpass.cl' .. 0.061178 [opencl_load_program] loaded cached binary program from file `/Users/seb/.cache/darktable/cached_kernels_for_AMDRadeonPro580ComputeEngine_12Nov122018211318/highpass.cl.bin' 0.061182 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/highpass.cl' 0.061239 [opencl_build_program] successfully built program 0.061244 [opencl_build_program] BUILD STATUS: 0 0.061246 BUILD LOG: 0.061248 0.061252 [opencl_init] compiling program `nlmeans.cl' .. 0.061315 [opencl_fopen_stat] could not open file `/Users/seb/.cache/darktable/cached_kernels_for_AMDRadeonPro580ComputeEngine_12Nov122018211318/nlmeans.cl.bin'! 0.061337 [opencl_load_program] could not load cached binary program, trying to compile source 0.070485 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/nlmeans.cl' 0.179435 [opencl_build_program] successfully built program 0.179449 [opencl_build_program] BUILD STATUS: 0 0.179452 BUILD LOG: 0.179453 In file included from <program source>:22: /Applications/darktable.app/Contents/Resources/share/darktable/kernels/common.h:34:1: warning: no previous prototype for function 'FC' FC(const int row, const int col, const unsigned int filters) ^ /Applications/darktable.app/Contents/Resources/share/darktable/kernels/common.h:41:1: warning: no previous prototype for function 'FCxtrans' FCxtrans(const int row, const int col, global const unsigned char (*const xtrans)[6]) ^ <program source>:31:7: warning: no previous prototype for function 'fast_mexp2f' float fast_mexp2f(const float x) ^ <program source>:41:7: warning: no previous prototype for function 'gh' float gh(const float f, const float sharpness) ^ <program source>:47:7: warning: no previous prototype for function 'ddirac' float ddirac(const int2 q) ^ 0.179485 [opencl_build_program] saving binary 0.180129 [opencl_init] compiling program `gaussian.cl' .. 0.185845 [opencl_load_program] could not load cached binary program, trying to compile source 0.201246 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/gaussian.cl' 0.305933 [opencl_build_program] successfully built program 0.305948 [opencl_build_program] BUILD STATUS: 0 0.305951 BUILD LOG: 0.305967 In file included from <program source>:21: /Applications/darktable.app/Contents/Resources/share/darktable/kernels/common.h:34:1: warning: no previous prototype for function 'FC' FC(const int row, const int col, const unsigned int filters) ^ /Applications/darktable.app/Contents/Resources/share/darktable/kernels/common.h:41:1: warning: no previous prototype for function 'FCxtrans' FCxtrans(const int row, const int col, global const unsigned char (*const xtrans)[6]) ^ <program source>:106:17: warning: comparison of integers of different signs: 'int' and 'unsigned int' for(int y=0; y<height; y++) ~^~~~~~~ <program source>:170:17: warning: comparison of integers of different signs: 'int' and 'unsigned int' for(int y=0; y<height; y++) ~^~~~~~~ <program source>:212:1: warning: no previous prototype for function 'lookup_unbounded' lookup_unbounded(read_only image2d_t lut, const float x, global float *a) ^ <program source>:257:1: warning: no previous prototype for function 'overlay' overlay(const float4 in_a, const float4 in_b, const float opacity, const float transform, const float ccorrect, ^ 0.305988 [opencl_build_program] saving binary 0.306611 [opencl_init] compiling program `sharpen.cl' .. 0.312381 [opencl_load_program] could not load cached binary program, trying to compile source 0.317964 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/sharpen.cl' 0.383025 [opencl_build_program] successfully built program 0.383038 [opencl_build_program] BUILD STATUS: 0 0.383056 BUILD LOG: 0.383058 In file included from <program source>:21: /Applications/darktable.app/Contents/Resources/share/darktable/kernels/common.h:34:1: warning: no previous prototype for function 'FC' FC(const int row, const int col, const unsigned int filters) ^ /Applications/darktable.app/Contents/Resources/share/darktable/kernels/common.h:41:1: warning: no previous prototype for function 'FCxtrans' FCxtrans(const int row, const int col, global const unsigned char (*const xtrans)[6]) ^ <program source>:146:10: warning: unused variable 'Labmin' float4 Labmin = (float4)(0.0f, -128.0f, -128.0f, 0.0f); ^ <program source>:147:10: warning: unused variable 'Labmax' float4 Labmax = (float4)(100.0f, 128.0f, 128.0f, 1.0f); ^ 0.383073 [opencl_build_program] saving binary 0.383621 [opencl_init] compiling program `extended.cl' .. 0.385418 [opencl_load_program] could not load cached binary program, trying to compile source 0.409447 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/extended.cl' 0.420222 [opencl_build_program] could not build program: -11 0.420248 [opencl_build_program] BUILD STATUS: -2 0.420252 BUILD LOG: 0.420254 <program source>:21:10: fatal error: 'common.h' file not found #include "common.h" ^ 0.420262 [opencl_init] failed to compile program `extended.cl'! 0.420288 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system. 0.420291 [opencl_init] initial status of opencl enabled flag is OFF. (darktable-bin:977): GLib-GObject-WARNING **: 23:52:55.347: invalid cast from 'GtkMenuBar' to 'GtkWindow' (darktable-bin:977): Gtk-CRITICAL **: 23:52:55.348: gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed (darktable-bin:977): GLib-GObject-CRITICAL **: 23:55:32.799: g_object_unref: assertion 'G_IS_OBJECT (object)’ failed --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ___________________________________________________________________________ darktable developer mailing list to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org