Reg : Asynchronous memory copy to gpu

Hi All,
I have written a basic program that writes asynchronously to a gpu and then reads the writen value in the gpu kernel and does some operations on it. But I’m seeing that it is not working.

My gpu card is Tesla C2050. I also have a Tesla C1060 card and this not working on it also.

Here is the code http://pastebin.com/Mw0JKNLP

Can you please tell me where I’m going wrong.

Regards,
M. Kiran Kumar.
stream.cu (1.13 KB)