Fixed order of arguments to cudaMemcpy.