Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does CUDA support function pointers?

cuda function pointers support
0
Posted

Does CUDA support function pointers?

0

No, current hardware does not support function pointers (jumping to a computed address). You can use a switch to select between different functions. If you don’t need to switch between functions at runtime, you can sometimes use C++ templates or macros to compile different versions of your kernels that can be switched between in the host code.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.