Displaying 1 result from an estimated 1 matches for "clcreatekernelsinprogram".
2010 Dec 24
0
[LLVMdev] OpenCL support
...ompiler
needs to look-up metadata for this particular function, because if the
function is not a kernel the user must get an CL_INVALID_KERNEL_NAME error.
In this case, your approach is superior because you don't have to search the
list (or about the same if the list has only one entry :))
b) clCreateKernelsInProgram() is called. The compiler then needs to find
the names of all kernel functions. Given that this call can happen after
linking against the built-in function library, the module can contain tens
to hundreds different functions, of which only a handful will be kernel
functions. In this case, our ap...