开发者

CUDA int4 bitwise operations

开发者 https://www.devze.com 2023-02-09 05:36 出处:网络
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 shif

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

精彩评论

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