current OSX Build

Since it might need several attempts to get the kernels compiled at first start of a new version to enable OpenCL following little script can do the annoying stuff:

#!/bin/bash
while true; do 
 str=`/Applications/darktable.app/Contents/MacOS/darktable-cltest | grep "OpenCL successfully initialized."` 
 if [[ $str =~ "OpenCL" ]]; then 
  echo "openCL enabled"
  break 
 fi 
done

current build: darktable 2.7.0+1613~gb4716385c with #1904 toneequal:

Thanks!

Also taken this, thanks :grinning::+1:

@MStraeten thanks for the build. I was able to get opencl to work with this one. Time to give this a spin on my Mac hopefully all is well and I don’t need Lightroom any more. So far Lightroom has been the only thing with any performance on my new iMac with 4k screen.

Current master darktable-2.7.0+1634~g69d3d18fb without ToneEqualizer: MEGA
Current master darktable-2.7.0+1713~g1b00719fa with ToneEqualizer: MEGA
There’s a warning when using the toneequalizer (not aligned pointers) but toneequal works fine indeed - maybe there could be segmentation faults, but i never had one …

1 Like

after a longer memory bug fighting phase it’s time for a new OSX build containing the latest Tone Equalizer Features: MEGA

1 Like

Thank you for your sharing work :+1:.

current master plus toneequal and filmic v3:

1 Like

Your work is always welcome, thanks.

here current master with recent merged toneequal:

3 Likes

pure master from yesterday afternoon (darktable-2.7.0+1890~gf70a03ab3):

Hello, i am running on hackintosh highsierra with nvidia gtx 1080, do you know how to activate opencl? thanks

nongratas-iMac:~ nongrata$ /Applications/darktable.app/Contents/MacOS/darktable-cltest ; exit;

0.027009 [opencl_init] opencl related configuration options:

0.027036 [opencl_init]

0.027040 [opencl_init] opencl: 0

0.027044 [opencl_init] opencl_library: ‘’

0.027049 [opencl_init] opencl_memory_requirement: 768

0.027053 [opencl_init] opencl_memory_headroom: 300

0.027057 [opencl_init] opencl_device_priority: ‘/!0,//

0.027061 [opencl_init] opencl_mandatory_timeout: 200

0.027065 [opencl_init] opencl_size_roundup: 16

0.027068 [opencl_init] opencl_async_pixelpipe: 0

0.027072 [opencl_init] opencl_synch_cache: active module

0.027076 [opencl_init] opencl_number_event_handles: 25

0.027080 [opencl_init] opencl_micro_nap: 1000

0.027083 [opencl_init] opencl_use_pinned_memory: 0

0.027087 [opencl_init] opencl_use_cpu_devices: 0

0.027090 [opencl_init] opencl_avoid_atomics: 0

0.027093 [opencl_init]

0.027719 [opencl_init] found opencl runtime library ‘/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL’

0.027764 [opencl_init] opencl library ‘/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL’ found on your system and loaded

0.027771 [opencl_init] found 1 platform

0.046932 [opencl_init] found 2 devices

0.046974 [opencl_init] discarding CPU device 0 `Intel(R) Core™ i7-3770K CPU @ 3.50GHz’.

0.046988 [opencl_init] device 1 `GeForce GTX 1080’ doesn’t have sm_20 support.

0.047003 [opencl_init] device 1 `GeForce GTX 1080’ supports image sizes of 32768 x 32768

0.047007 [opencl_init] device 1 `GeForce GTX 1080’ allows GPU memory allocations of up to 2048MB

[opencl_init] device 1: GeForce GTX 1080

GLOBAL_MEM_SIZE: 8192MB

MAX_WORK_GROUP_SIZE: 1024

MAX_WORK_ITEM_DIMENSIONS: 3

MAX_WORK_ITEM_SIZES: [ 1024 1024 64 ]

DRIVER_VERSION: 10.33.0 387.10.10.10.40.131

DEVICE_VERSION: OpenCL 1.2

0.057901 [opencl_init] options for OpenCL compiler: -cl-mad-enable -DUNKNOWN=1 -I/Applications/darktable.app/Contents/Resources/share/darktable/kernels

0.058038 [opencl_init] compiling program `demosaic_ppg.cl’ …

0.058225 [opencl_load_program] loaded cached binary program from file `/Users/nongrata/.cache/darktable/cached_kernels_for_GeForceGTX1080_1033038710101040131/demosaic_ppg.cl.bin’

0.058231 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/demosaic_ppg.cl’

0.059469 [opencl_build_program] successfully built program

0.059477 [opencl_build_program] BUILD STATUS: 0

0.059480 BUILD LOG:

0.059483

0.059489 [opencl_init] compiling program `atrous.cl’ …

0.059563 [opencl_load_program] loaded cached binary program from file `/Users/nongrata/.cache/darktable/cached_kernels_for_GeForceGTX1080_1033038710101040131/atrous.cl.bin’

0.059569 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/atrous.cl’

0.059653 [opencl_build_program] successfully built program

0.059659 [opencl_build_program] BUILD STATUS: 0

0.059663 BUILD LOG:

0.059665

0.059670 [opencl_init] compiling program `basic.cl’ …

0.060075 [opencl_load_program] loaded cached binary program from file `/Users/nongrata/.cache/darktable/cached_kernels_for_GeForceGTX1080_1033038710101040131/basic.cl.bin’

0.060080 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/basic.cl’

0.061711 [opencl_build_program] successfully built program

0.061719 [opencl_build_program] BUILD STATUS: 0

0.061723 BUILD LOG:

0.061725

0.061732 [opencl_init] compiling program `blendop.cl’ …

0.061901 [opencl_load_program] loaded cached binary program from file `/Users/nongrata/.cache/darktable/cached_kernels_for_GeForceGTX1080_1033038710101040131/blendop.cl.bin’

0.061907 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/blendop.cl’

0.062099 [opencl_build_program] successfully built program

0.062105 [opencl_build_program] BUILD STATUS: 0

0.062108 BUILD LOG:

0.062111

0.062116 [opencl_init] compiling program `highpass.cl’ …

0.062196 [opencl_load_program] loaded cached binary program from file `/Users/nongrata/.cache/darktable/cached_kernels_for_GeForceGTX1080_1033038710101040131/highpass.cl.bin’

0.062201 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/highpass.cl’

0.062296 [opencl_build_program] successfully built program

0.062301 [opencl_build_program] BUILD STATUS: 0

0.062305 BUILD LOG:

0.062307

0.062313 [opencl_init] compiling program `nlmeans.cl’ …

0.062412 [opencl_load_program] loaded cached binary program from file `/Users/nongrata/.cache/darktable/cached_kernels_for_GeForceGTX1080_1033038710101040131/nlmeans.cl.bin’

0.062417 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/nlmeans.cl’

0.062620 [opencl_build_program] successfully built program

0.062629 [opencl_build_program] BUILD STATUS: 0

0.062633 BUILD LOG:

0.062636

0.062642 [opencl_init] compiling program `gaussian.cl’ …

0.062861 [opencl_load_program] loaded cached binary program from file `/Users/nongrata/.cache/darktable/cached_kernels_for_GeForceGTX1080_1033038710101040131/gaussian.cl.bin’

0.062866 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/gaussian.cl’

0.063051 [opencl_build_program] successfully built program

0.063057 [opencl_build_program] BUILD STATUS: 0

0.063060 BUILD LOG:

0.063063

0.063068 [opencl_init] compiling program `sharpen.cl’ …

0.063181 [opencl_load_program] loaded cached binary program from file `/Users/nongrata/.cache/darktable/cached_kernels_for_GeForceGTX1080_1033038710101040131/sharpen.cl.bin’

0.063186 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/sharpen.cl’

0.063266 [opencl_build_program] successfully built program

0.063271 [opencl_build_program] BUILD STATUS: 0

0.063274 BUILD LOG:

0.063276

0.063282 [opencl_init] compiling program `extended.cl’ …

0.063470 [opencl_load_program] loaded cached binary program from file `/Users/nongrata/.cache/darktable/cached_kernels_for_GeForceGTX1080_1033038710101040131/extended.cl.bin’

0.063475 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/extended.cl’

0.064101 [opencl_build_program] successfully built program

0.064107 [opencl_build_program] BUILD STATUS: 0

0.064110 BUILD LOG:

0.064112

0.064118 [opencl_init] compiling program `soften.cl’ …

0.064229 [opencl_load_program] loaded cached binary program from file `/Users/nongrata/.cache/darktable/cached_kernels_for_GeForceGTX1080_1033038710101040131/soften.cl.bin’

0.064233 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/soften.cl’

0.064321 [opencl_build_program] successfully built program

0.064326 [opencl_build_program] BUILD STATUS: 0

0.064330 BUILD LOG:

0.064332

0.064337 [opencl_init] compiling program `bilateral.cl’ …

0.064459 [opencl_load_program] loaded cached binary program from file `/Users/nongrata/.cache/darktable/cached_kernels_for_GeForceGTX1080_1033038710101040131/bilateral.cl.bin’

0.064464 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/bilateral.cl’

0.064568 [opencl_build_program] successfully built program

0.064573 [opencl_build_program] BUILD STATUS: 0

0.064576 BUILD LOG:

0.064579

0.064584 [opencl_init] compiling program `denoiseprofile.cl’ …

0.064683 [opencl_load_program] loaded cached binary program from file `/Users/nongrata/.cache/darktable/cached_kernels_for_GeForceGTX1080_1033038710101040131/denoiseprofile.cl.bin’

0.064687 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/denoiseprofile.cl’

0.065006 [opencl_build_program] successfully built program

0.065011 [opencl_build_program] BUILD STATUS: 0

0.065015 BUILD LOG:

0.065017

0.065022 [opencl_init] compiling program `bloom.cl’ …

0.065058 [opencl_fopen_stat] could not open file `/Users/nongrata/.cache/darktable/cached_kernels_for_GeForceGTX1080_1033038710101040131/bloom.cl.bin’!

0.065083 [opencl_load_program] could not load cached binary program, trying to compile source

0.065096 [opencl_load_program] successfully loaded program from `/Applications/darktable.app/Contents/Resources/share/darktable/kernels/bloom.cl’

0.069400 [opencl_build_program] could not build program: -11

0.069422 [opencl_build_program] BUILD STATUS: -2

0.069425 BUILD LOG:

0.069429 :19:10: fatal error: ‘common.h’ file not found

#include “common.h”

^

0.069437 [opencl_init] failed to compile program `bloom.cl’!

0.069458 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.

0.069461 [opencl_init] initial status of opencl enabled flag is OFF.

logout

Saving session…

…copying shared history…

…saving history…truncating history files…

…completed.

[Process completed]

Be patient and use the script in current OSX Build - #9 by MStraeten. It needs several attempts ( i got up to 40 attempts) until all kernels are built properly :wink:

u mean, i have to run that script over and over?

done
openCL enabled
bash-3.2$

The script contains a loop terminating after all kernels are compiled and opencl is enabled.

new build darktable-2.7.0+1998~gbcc928310.dmg:
MEGA

1 Like

I always download and use your development versions, but they all crash if I set the view to full screen.
(iMac 27" late 2011 - SSD 512 Gb - RAM 12 Gb - AMD Radeon HD 6770M 512 MB - macOS 10.12.6 Sierra)
Thank you.

again a new build made on mojave with xcode 11, macports 2.6.2:
darktable-2.7.0+2055~g36f87d176.dmg

I have been using Darktable 2.6.2 for past 7 months. If I download the development versions given here what precautions I have to follow.
I saw now that 2.6.3 is released so if I download that version what is the difference between that and your development versions

Can I use both the versions or only the development version
I am using a hackintosh with latest Catalina
Thanks