error in cudaMemcpy

Hi guys:
I have compiled my program successfully with Nsight on my computer.
But when I compile the same codes of my program on another computer ,there is such question:
I can compile with Nsight successfully, but when I run the program some error accured.
I have find the the location of error is cudaMemcpy( , , , cudaMemcpyHostToDevice).
error = an illegal memory access was encountered

Does anybody know how to solve this problem.

Best regards

dong

It usually means that a prior kernel call did an illegal operation.

Run your code with cuda-memcheck (just google that)