Atomic Operation on CUDA how to perform a copy from global variable to local variable

Hi,

I am new to CUDA and need help in this particular issue.

I have a global structure called d_tempright. (This is shared by various threads).
I want to transfer its content automically in my kernel function to a local variable.
Because… atomicExch(…) has its arguments as *address in global memory as destination it is not of good help to me.

how do i do the reverse operation of transferring the value of d_tempright to a local variable.

Please help me in this regard.

thanking You,

Manish Kumar