I was trying to make somtehing like this (actually I need to write some integration functions) in CUDA
#include using namespace std; float
Even though you may be able to compile this code (see @Robert Crovella's answer) this code will not work. You cannot pass function pointers from host code as the host compiler has no way of figuring out the function address.