How to get pointer to a kernel by its name?


I would like to ask whether there is a way to retrieve a pointer to a kernel, by its name.

Thank you!

You can do that in device code. Ordinary host code cannot directly use a device code entry point (function name) as a pointer.

You can retrieve a kernel pointer in device code using a typical C++ method. I’m not sure what if anything that could or would be used for.

1 Like

Ok I see, thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.