atomicAdd function for an unsigned short value

You can do atomic operations on one byte and two byte quantities, using a 4-byte atomic operation plus some extra processing. this thread may be of interest.

1 Like