Skip to content

Feature: Provide Kernel.compile(...) method for pre-compilation of kernel without executing it

Luis Mendes requested to merge CoreRasurae/aparapi:master into master

This merge request provides new Kernel.compile(...) methods that allow for a kernel to be pre-compiled without having to execute it.

  • This has two benefits: one is that it can be used to save compilation time when a kernel needs to be executed, by forcing a kernel pre-compilation, without requiring a dry run just achieve the compilation and the other benefit is that it can be used to test a kernel for compilability on a given device.
  • This is also needed to implement the methods Kernel.getMaxWorkGroupSize() and Kernel.getMaxWorkItemSize() and similar which require the kernel to be compiled before being called due to the way clGetKernelWorkGroupInfo(...) OpenCL call works.

Merge request reports