CUDA int4 bitwise operations
I was wondering is there any availab开发者_StackOverflow中文版le bitwise operations for CUDA's vector types like int4/int2? I see lot of aux functions in cutil_math.h, but no any bit (left/right shift) operations, so I could
int4 x;
x <<= 100;
Thank you.
I believe you have to do the operation element-wise (or define the operator yourself).
精彩评论