cuda - cudaMemcpy - THE CHECK - Stack Overflow
stackoverflow.com › questions › 3095776Apr 30, 2011 · 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 ...