Forum Discussion

Björne2's avatar
Björne2
Icon for New Contributor rankNew Contributor
1 year ago

Scatter-updates to global memory and false sharing

I have an array of unique indexes. Let's call it I. So e.g I = {3, 9, 15, 22, 23, 24, ...}. I want to update all elements of a global float buffer G matching those indexes. Like this: for (int i = 0...