Skip to content

Commit a888688

Browse files
committed
fix warning: comparison of integers of different signs: 'const int' and 'unsigned int' [-Wsign-compare]
Signed-off-by: Xiaodong Ye <[email protected]>
1 parent 4c7e53a commit a888688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/reduce_rows.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static __global__ void reduce_rows_f32(const float * __restrict__ x, float * __r
3939
}
4040
__syncthreads();
4141
sum = 0.0f;
42-
if (lane_id < (blockDim.x / WARP_SIZE)) {
42+
if (lane_id < (static_cast<int>(blockDim.x) / WARP_SIZE)) {
4343
sum = s_sum[lane_id];
4444
}
4545
sum = warp_reduce_sum(sum);

0 commit comments

Comments
 (0)