CUDA Programming GPU Function Call problem

I have written a GPU function and am trying to call it within a loop in a CPU function. However, the GPU function appears to do nothing when called in this manner. Has anyone faced a similar problem?


No. How are you determining that it does nothing? Are you checking for error conditions by calling cudaThreadSynchronize() and then cudaGetLastError()?