Previous | Next --- Slide 7 of 46
Back to Lecture Thumbnails
ycp

In functionality atomicSum is the same as if you used a lock, but what is the difference in latency?

kayvonf

Yes. You can think of atomicAdd to operate like this.

void atomicAdd(int* addr, int value) {