The Khronos Group - a non-profit industry consortium to develop, publish and promote open standard, royalty-free media authoring and acceleration standards for desktop and handheld devices, combined with conformance qualification programs for platform and device interoperability.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

reg kernel function

Suppose in Kernel function there will be n work items performing some task, if one of the work item finishes its task early then it has to terminate and all other work item must also terminate. Can you help me how to do this

Re: reg kernel function

There's no good way to do that. You could use something like a __local integer variable and force work-items to poll the value of that variable. When a work-item finishes it will set the variable to 1, and when other work-items find that the variable is set to 1 they will return.