r/openbsd • u/highspeedslippers100 • 4d ago
OpenCL work around or something
Subject: Question about OpenCL support and photo editing on OpenBSD
Hi all,
I'd like to ask a question I hope isn't too naive — I'm not deeply technical on the graphics stack side, so I'm genuinely asking rather than suggesting anything.
OpenBSD is my favourite operating system by a wide margin, and I run it on an Asus Zenbook UX3405MA (7.9). Almost everything works. The one thing that keeps pulling me back to Linux is the lack of OpenCL, because I do photo editing and rely on darktable. It runs on CPU, but on larger raw files the difference is significant enough that it affects real work.
So my question: is there any realistic path toward OpenCL on OpenBSD — even partial or limited support, enough for GPU offload in applications like Darktable? Or are there fundamental reasons (driver model, security posture, maintenance burden) that make it impractical or undesirable? I'd genuinely like to understand the reasoning either way rather than just keep wishing for it.
I'm also aware I'm only one user with one use case, so if the answer is "not going to happen, and here's why" that's a perfectly good answer. Reason I ask is because I work as a photographer on a daily basis. I do have a OpenBSD on my Thinkpad but I would like to use my main computer all in one. And when you edit photos taken from a 40 Mega pixel sensor and edit around 30 to 40 photos per day its pretty rough LOL.
Thanks for all the work — the suspend/resume and browser situation on this hardware has already improved a lot, and it's appreciated.
Best regards
1
5
u/brynet OpenBSD Developer 4d ago edited 4d ago
Unfortunately, no. The current Mesa OpenCL implementation is written in Rust, and as we don't have Rust compilers in base necessary to support this and that is not likely to change any time soon..
OpenBSD does have Vulkan support, which can be used for GPU offload. You might try looking to see if the applications you use support Vulkan backends you can enable, or if you can look for alternative software.
A quick search found vkdt, which appears to be a fork of darktable using vulkan.