Altera_Forum
Honored Contributor
8 years agonum_compute_units effect on concurrent workgroups
Hello all,
I have a kernel that uses barriers, and I have been running into a problem during compilation where the compiler throws the warningCompiler Warning: Kernel 'sync': limiting to 2 concurrent work-groups because threads might reach barrier out-of-order.
The affected area is like this: while(tid < vert_count)
{
status = tid;
tid += total_threads;
}
barrier(CLK_GLOBAL_MEM_FENCE);
I suspect this has something to do with indeterminate loop bounds, but I could be wrong and am looking for some suggestions. To circumvent the error I also tried to increase the number of compute units using the num_compute_units() attribute, but that did not change the outcome. Does anyone have any insight as to why that might be? Or more broadly, how the num_compute_units() attribute affects workgroup scheduling and concurrency?