current OSX Build

Thanks for updating the builds so regularly. Usually, I have no problems but this time I can’t run openCL.
I did a darktable -d opencl and got this output. It shows that the device is detected but dt still can’t implement OpenCL.

 /Applications/darktable.app/Contents/MacOS/darktable -d opencl
     0,2916 [opencl_init] opencl disabled via darktable preferences
     0,2916 [opencl_init] opencl library '/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL' found on your system and loaded, preference 'default path'
     0,2916 [opencl_init] found 1 platform
[opencl_init] found 1 device

[dt_opencl_device_init]
   DEVICE:                   0: 'Apple M4 Pro'
   CONF KEY:                 cldevice_v5_appleapplem4pro
   PLATFORM, VENDOR & ID:    Apple, Apple, ID=16940800
   CANONICAL NAME:           appleapplem4pro
   DRIVER VERSION:           1.2 1.0
   DEVICE VERSION:           OpenCL 1.2 
   DEVICE_TYPE:              GPU, unified mem
   GLOBAL MEM SIZE:          36864 MB
   MAX MEM ALLOC:            6912 MB
   MAX IMAGE SIZE:           16384 x 16384
   MAX WORK GROUP SIZE:      256
   MAX WORK ITEM DIMENSIONS: 3
   MAX WORK ITEM SIZES:      [ 256 256 256 ]
   ASYNC PIXELPIPE:          NO
   PINNED MEMORY TRANSFER:   NO
   AVOID ATOMICS:            NO
   MICRO NAP:                250
   ROUNDUP WIDTH & HEIGHT    16x16
   CHECK EVENT HANDLES:      128
   TILING ADVANTAGE:         0,000
   DEFAULT DEVICE:           NO
   KERNEL BUILD DIRECTORY:   /Applications/darktable.app/Contents/Resources/share/darktable/kernels
   KERNEL DIRECTORY:         /Users/nick/.cache/darktable/cached_v5_kernels_for_AppleAppleM4Pro_1210
   CL COMPILER OPTION:       -cl-fast-relaxed-math
   CL COMPILER COMMAND:      -w -cl-fast-relaxed-math -DAPPLE=1 -I/Applications/darktable.app/Contents/Resources/share/darktable/kernels
UNSUPPORTED (log once): buildComputeProgram: cl2Metal failed
     0,3227 [opencl_build_program] could not build program: CL_BUILD_PROGRAM_FAILURE
     0,3227 [dt_opencl_device_init] failed to compile program `demosaic_ppg.cl'!
[opencl_init] no suitable devices found.
     0,3227 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.

I usually erase the device lines in darktablerc and let dt rebuild but this time no luck. Would anyone have an idea what is happening please?

Nicolas

OK, I solved the problem but rather than erasing the previous post, I’ll give the solution I found.

  1. Erase .cache folder
  2. remove the 3 lines starting with cldevice_v5 in darktablerc
  3. run darktable-cltest . It seems to rebuild opencl and OpenCL becomes available but OFF
  4. In darktablerc find the line opencl=FALSE and change to opencl=TRUE

current 5.2.x bugfix build + Canon R1 and R5mII support by Adding new camera support in darktable / LibRaw / ExifTool – Pandas Welt + a couple of RF lensfun data from: Kameratrollet
+ AgX development version (A port of Blender’s AgX to darktable by kofa73 · Pull Request #19026 · darktable-org/darktable · GitHub)

darktable-5.2.0+73~ge936e03aa3_arm64.dmg (macOS >= 11.3)
darktable-5.2.0+73~g2cf0d2a68b_x86_64.dmg (macOS >= 10.14)

you might run it with an in-memory library via terminal:
/Volumes/darktable/darktable.app/Contents/MacOS/darktable --library :memory:
or use a separate config directory:
/Volumes/darktable/darktable.app/Contents/MacOS/darktable --configdir ~/.config/darktable_test

also keep in mind that if you don’t disable writing sidecar files these can be messed up

both packages are unsigned, you might need to allow execution via terminal: " xattr -c <path/to/application.app> "

Release notes for 5.2.x release: https://github.com/darktable-org/darktable/blob/darktable-5.2.x/RELEASE_NOTES.md

difference to released 5.2.0 see: Comparing release-5.2.x…release-5.2.0

1 Like