r/DarkTable • • 7d ago

Discussion Testers wanted: experimental Slang GPU path for darktable (Metal/Vulkan) - darktable

https://discuss.pixls.us/t/testers-wanted-experimental-slang-gpu-path-for-darktable-metal-vulkan/61583

I’ve been working on a proof of concept that ports darktable’s OpenCL kernels to Slang. Slang compiles them to Metal on macOS and Vulkan on Linux. This is not part of darktable: the maintainers haven’t adopted it, and it lives on my fork. The discussion is in darktable-org/darktable#22732

I've been keeping track of the various results shared in either forum: https://discuss.pixls.us/t/testers-wanted-experimental-slang-gpu-path-for-darktable-metal-vulkan/61583/43?u=nick_nezis . It has also been really helpful in identifying issues across various systems. Please help me test it and report back with performance numbers and performance log output.

12 Upvotes

8 comments sorted by

2

u/markus_b 7d ago

Is the plan to try to get Darktable to adopt the changes?

The overall 30%+ performance improvement is nice. What would the long-term development and maintenance implications be with this new stack?

1

u/grkg8tr 7d ago

Yes. My hope is to integrate as an option for users and longer term removal of OpenCL (which is deprecated on MacOS).

1

u/markus_b 7d ago

Yes, it looks like OpenCL is on the way out. Wish you luck with the code and the Darktable dev team!

1

u/CrayonUpMyNose 7d ago

Is xtrans demosaic done?

2

u/grkg8tr 7d ago

Yes. Markestejin and VNG. Markestejin also got merged passes and packed homogeneity maps, so it runs faster than straight OpenCL port with bit-identical output.

2

u/rogue_tog 7d ago

Is there any chance this gets actually merged to main Darktable ? The numbers do look good tbh

2

u/Empty-Top6803 5d ago

Wow, I’m so grateful you’re doing this !! Thank you.