Previous | Next --- Slide 47 of 78
Back to Lecture Thumbnails
Holladay

Inside the "Assignment Tips and Hints" section of assignment two there is a note that "How will you ensure atomicity of image update since there is no CUDA language primitive that performs the logic of the image update operation atomically?" On this slide we discussed atomic operations. To clarify, is it there there are CUDA atomic operations, but not for image updating?

bpr

@Holladay, CUDA has several atomic primitives(http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#atomic-functions). However, it would be non-trivial to update the image data atomically.

You could also read the tip as saying, you will do better by reconstructing your solution to avoid needing any atomic updates.