occa
occa copied to clipboard
API for compiling all kernels in a file
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);