Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenCL synchronization between work-groups

Is it possible to synchronize OpenCL work-groups?

For example, I have 100 work-groups every work-groups have only one item (don't ask me why, this is an example), and I need to put barrier to every work-item which ensure that all work-groups will be continue after every work-item in this 100 work-groups reaches this barrier point.

like image 902
pierre tautou Avatar asked May 05 '11 08:05

pierre tautou


1 Answers

No, you can't. You can synchronize threads inside a group, and you can synchronize kernel executions inside a command queue.

You may be able to synchronize a small number of groups as long as they are all executed simutaneously, using atomic accesses. But it will freeze if some groups are scheduled later, and you have no control on this.

like image 57
Eric Bainville Avatar answered Oct 19 '22 23:10

Eric Bainville