Hi there, can somebody give me an advice in following. I am copying some data from CPU to GPU and i need to know whether its copied rigth. I can check the return code of cudeMemcpy, but it would much more better if i can print the array at GPU.
int doCopyMemory(char * Input, int InputBytes)
{
/* Copying needed data on GPU */
cudaError_t s = cudaMemcpy ( SOURCE_DATA, Input, InputBytes, cudaMemcpyHostToDevice );
if (s != cudaSuccess) return 0;
else return 100;
}
I need to see the content of SOURCE_DATA after copying. Thx in advice.