copyout Memcpy (host=XXX.。。) FAILED: 1

Hi,
Does anybody know the exact meaning of this failure? It seems to be some problem caused by illegal memcpy, but I cannot figure it out.

copyout Memcpy (host=XXXXXX, dev=XXXXXX, size=XXX) FAILED: 11(invalid argument)

Thanks in advance.

The problem is solved. I used wrong parameters in the allocate() funtions.