Does CUDA support function pointers?
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.