Removed a misleading comment.
The value added to a_i (result of multiplication i_d*a_str[d]) was unsigned int, which broke when strides were negative.
This is not a bug in nvcc 3.0, it is correct behavior according to the C99 standard:
"Otherwise, if the operand that has unsigned integer type has rank greater or equal to the rank of the type of the other operand, then the operand with signed integer type is converted to the type of the operand with unsigned integer type."
正在显示
请
注册
或者
登录
后发表评论