The OpenCL kernel source could be generated at run-time, but with this
change it makes it more similar to the CUDA version, where we need to
compile the kernel at compile-time. This is to improve the symmetry
between those features and should also simplify the code for future
changes.
The OpenCL kernel source could be generated at run-time, but with this change it makes it more similar to the CUDA version, where we need to compile the kernel at compile-time. This is to improve the symmetry between those features and should also simplify the code for future changes.