Hi!
In a dispatch with multiple groups, suppose the following:
Thread Group A:
- Thread1 in the group read, modify and then write UAV[x,y] --- NOTE no other thread in groupA handles to UAV[x,y]
Thread Group B:
- Thread28 in the group ends up reading, modifying and then writing UAV[x,y] as well. -- NOTE no other thread in groupB handles to UAV[x,y]
What happens? Do I get race conditions between groups? If so, what could be an efficient strategy to avoid this?
I assume they do, if so, do atomic operations (i.e. Interlocked etc.) work across multiple groups on UAVs? Also, what performance penalty may I incur?