For my project, I need to compile kernels on the fly. I had a look at the
source, and found you only create one kernel object. The solution could be to
allow the user to create named modules with a source code string. The kernel
dispatcher would then use a qualified function name.
clUtilEnqueueKernel("fill", clUtilGrid(length, 64), buffer, length, val);
would become:
clUtilEnqueueKernel("default.fill", clUtilGrid(length, 64), buffer, length,
val);
I could say:
clUtilCreateModule("MyModule", "__kernel void myFill....etc");
clUtilEnqueueKernel("MyModule.myFill", clUtilGrid(length, 64), buffer, length,
val);
Original issue reported on code.google.com by debdatta...@gmail.com on 27 Sep 2012 at 1:46
Original issue reported on code.google.com by
debdatta...@gmail.com
on 27 Sep 2012 at 1:46