by Gankra · 4y ago · 0 comments
but i guess the difference between "pointer to an array" and "a segment of memory" isn't actually that big?
__thread int array[100];
array[n] += 5:
Effectively computes the offset portion of array+n and then, using CPU assistance, accesses that memory relative to the segment.