I have b number of blocks and each block has t number of threads. I can use
to synchronize the threads that are in a particular block. for example
__global void aFunction()
But my problem is to synchronize all the threads in all the blocks. How can I do this?