Hacker News new | ask | show | jobs
by 6d65 2013 days ago
I've been playing with OpenCL lately. Is such a shame that the support is so spotty, and even Apple(who I think started it, probably as a CUDA alternative for their AMD cards), are deprecating it.

Even with it not being able to squeeze all the perf from a device, it's still handy, especially being a cross device api.

It would've been ideal for piet, especially since compute kernels can also be run on CPU on all cores, given a CPU driver. And I think some OpenCL implementations support spirv. So it wouldn't have needed any fallbacks, the same kernels would run either on CPU or GPUs.

I'm still going to use it for my project. But, it's a shame that AMD RoCm OpenCL doesn't support running kernels on their CPUs.

Also, Rust might benefit from something like SYCL. There is some attractive convenience in having a DSL built into the language for parallel computing. But one can dream.

1 comments

AIUI, you can always use llvmpipe or POCL to run OpenCL on CPU. It's completely independent of any GPU-level support.