Up to date tutorial or guide to opencl

Opencl has changed recently and I’m looking for the latest definitive guide. Why? I am getting variable success (form not working through to seemingly working OK) with different applications and so want to check the basics first before I dive into any potential application issues.

Extra info on issues below if anyone is interested…

geekbench gives an error -

Blockquote
Error: unknown OpenCL platform.

Darktable seems to build the opencl options fine, but I’m not sure what function use it to check further and how to check it is really being used.

fahclient (8.3.7) - yields “supported” or “unsupported” seemingly randomly, and doesn’t use the GPU in either case.

My config enables opencl and the following:

Blockquote
systemd.tmpfiles.rules =
let
rocmEnv = pkgs.symlinkJoin {
name = “rocm-combined”;
paths = with pkgs.rocmPackages; [
rocblas
hipblas
clr
];
};
in [
“L+ /opt/rocm - - - - ${rocmEnv}”
];

I also set

Blockquote
OCL_ICD_VENDORS = “/run/opengl-driver/etc/OpenCL/vendors”;