Solved cudaMemcpy issue

* The functions being called for the printf were causing the bug.