[&#8230;] Similar modifications can be done to OpenCL kernel using the kernel compile options to the function call clBuildProgram and ensuring the kernels are compiled only once. We have recently done a post on how to ensure OpenCL kernels are compiled only once in applications. You can find the article here. [&#8230;]