On trying to compile my CUDA program I got the following error:
error: â€˜cudaMemcpyHostToDeviceâ€™ undeclared (first use in this function)
Of course, I did not declare it. I assume it is declared in one of the header files. I have tried putting in several (cuda.h, cutil_inline.h) at the top of the program. They did not work!
I have checked example programs that use cudaMemcpyHostToDevice and it seems they all have their own way of dealing with it; no consistent trend here.
How can I declare cudaMemcpyHostToDevice in my program?