It depends on your hardwfare. At minimum you need opencl + you need drivers for your hardware. Typically there should be an opencl-something package + when installing drivers, some install opencl by default, some have explicit opencl add-on.
I suspect that WSL2 + OpenCL don't get along.