Does work-items access objects of global memory consistently. I mean to ask if I have a variable 'x' is passed with __global keyword to a kernel with 2 work-groups and each work-group having 5 work-items. The kernel code just performs the operation x=x+1;
At the end of kernel exection what will be the value of x. Will it always be 10?