I have written a code in which all threads in a block update some shared variable and then I use __syncthreads() to make sure that all threads in the block are actually done updating the same shared memory variable.
Now, I want that one global memory variable should be updated with the resultant value of the shared variable. Can it be done ?
I ran the code in emuDebug mode and I get the error following error when I update the global memory:-
[font=“Courier”]Unhandled exception at 0x10012418 in Prog.exe: 0xC0000027: Unwind exception code[/font]