Hacker News new | ask | show | jobs
by saltcured 952 days ago
Have you had good experience with this for portability though? On what classes of hardware and OS?

I did a bit of work in OpenCL almost 10 years ago, and found it decently portable on a range of NVIDIA GPUs as well as Intel iGPUs. On the high end I used something like the Titan X while on the low end it was typical GPUs found in business class laptops.

But my limited exposure to AMD was terrible by comparison. Even though I am away from that work now, I still tend to try to run "clpeak" and one of my simpler image processing scripts on each new system. And while I liked a Ryzen laptop for general use or even games, it seemed like OpenCL was useless there. It seemed my best option was to ignore the GPU and use Intel's x86_64 SIMD OpenCL runtime.

2 comments

Yes, even ~2012 OpenCL code works incredibly well today for spectral path tracing: https://indigorenderer.com/indigobench

Also my fractal software incl OpenCL multi-GPU / mixed plaftorm rendering: https://chaoticafractals.com/

Both work on [ Nvidia, AMD, Intel, Apple ] x [ CPU, GPU ].

Some of the shared code here: https://github.com/glaretechnologies/glare-core

Don't let anyone tell you OpenCL is dead! Keep writing OpenCL software!!

AIUI, your current best bet for good OpenCL implementation on less-than-cutting-edge AMD hardware is the Mesa Project's RustiCL work.