occa icon indicating copy to clipboard operation
occa copied to clipboard

API for compiling all kernels in a file

Open thilinarmtb opened this issue 6 years ago • 0 comments

It will be great to have an API similar to following to build all the kernels in a file to an object (program) and then extract out each individual kernels.

occa::program p = device.buildKernels(fileName,props);

Then extract the kernel by:

occa::kernel k=p.getKernel(kernelName);

Corresponding C API will look something similar to following:

occaProgram p=occaCreateProgram(fileName,props);
occaKernel k=occaGetKernel(kernelName);

thilinarmtb avatar Dec 09 '19 18:12 thilinarmtb