how to make different threads executing different parts in cuda ?

Posted by Vickey on Stack Overflow See other posts from Stack Overflow or by Vickey
Published on 2010-05-06T08:48:10Z Indexed on 2010/05/06 9:48 UTC
Read the original article Hit count: 125

Filed under:

I am working on cuda and I have some problem related to thread synchronization. In my code I need threads to execute different part like

one thread -> all thread -> one thread

this is what I want. In the initial part of code only one thread will execute and then some part will be executed by all threads then again single thread. Also the threads are executing in a loop. Can anyone tell me how to do that? It's a kinda urgent. I'll be grateful with any help. Thanks

© Stack Overflow or respective owner

Related posts about cuda