Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cuda atomic operations on unsigned short

Tags:

atomic

cuda

gpu

Are there some inbuilt functions in cuda for doing atomic operations on unsigned short or unsigned char?

like image 945
Bharat Avatar asked Nov 04 '22 19:11

Bharat


1 Answers

No, there are no CUDA atomic intrinsics for unsigned short and unsigned char data types, or any data type smaller than 32 bits.

However, you could group together two shorts or four chars and perform a 32-bit atomic on them, processing multiple at once (assuming your computation permits this).

like image 175
harrism Avatar answered Nov 08 '22 09:11

harrism