Is it possible use a function pointer with CUDA? If I have some code like:
__global__ void myKernel(...)
{
int a = function(...);
}
__device__ int function(...)
{
//do something
}
Could I call the function inside the kernel with a device function pointer?
Thank you!