Skip to content

Dynamic kernel compilation. #8

Description

@GoogleCodeExporter
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions