Gamaru / clutil

Automatically exported from code.google.com/p/clutil
0 stars 0 forks source link

Dynamic kernel compilation. #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Sorry for the defect tag. Please rename it to Enhancement!

Cheers!
-Debdatta Basu.

Original comment by debdatta...@gmail.com on 27 Sep 2012 at 1:49