开发者

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜