Skip to content

Commit bd8422d

Browse files
fix out-of-bounds write
1 parent 158e3d3 commit bd8422d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml-cuda/mmq.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ static __global__ void mul_mat_q(
11241124
for (int i0 = 0; i0 < mmq_y; i0 += WARP_SIZE) {
11251125
const int i = blockIdx.x*mmq_y + i0 + threadIdx.x;
11261126

1127-
if (need_check && i > ne0) {
1127+
if (need_check && i >= ne0) {
11281128
continue;
11291129
}
11301130

0 commit comments

Comments
 (0)