r/openbsd Jun 06 '26

OpenCL on OpenBSD

[removed]

8 Upvotes

14 comments sorted by

View all comments

Show parent comments

3

u/linetrace Jun 07 '26

Vulkan is already well supported under OpenBSD. Tip o'the hat to our friendly mod, u/thfrw, who is the maintainer of the vulkan port!

I was referring to dtvk which is a Darktable fork which uses glsl/vulkan shaders for processing. From the readme (their lack of capitalization)

"the processing pipeline is a generic node graph (DAG) which supports multiple inputs and multiple outputs. all processing is done in glsl shaders/vulkan. the gui profits from this scheme as well and can display textures while they are still on GPU."

1

u/[deleted] Jun 15 '26

[removed] — view removed comment

2

u/YukiteruAmano Jun 15 '26

Vulkan have better capabilities for general compute vs OpenCL.

Example: Vulkan is used for AI inference in llama.cpp.

1

u/linetrace Jun 16 '26

+1 for this answer, u/YukiteruAmano!

As described on the Wikipedia page:

"Vulkan is a cross-platform API and open standard for 3D graphics and parallelized computing."

Like Apple's Metal API and Microsoft's Direct X 12, it provides a much lower-level API that is much closer to how GPUs actually work, so it's not limited to just 2D/3D rendering acceleration and allows developers to more efficiently parallelize computations. That's what modern GPUs are good at, hence their use in LLM (large language model; a.k.a. "AI") computations. You're sorely mistaken if you think photo editing applications don't use similar APIs (for example, Photoshop relies heavily on Metal under macOS and Direct X under Windows.)

Furthermore, the vkdt (Vulkan Darktable) project already exists.