Skip to content

Commit 26a8406

Browse files
CUDA: fix shared memory access condition for mmv (#10740)
1 parent c37fb4c commit 26a8406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/mmv.cu

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static __global__ void mul_mat_vec(
5757
if (block_size > WARP_SIZE) {
5858
buf_iw[tid/WARP_SIZE] = sumf;
5959
__syncthreads();
60-
if (tid > WARP_SIZE) {
60+
if (tid >= WARP_SIZE) {
6161
return;
6262
}
6363
sumf = buf_iw[tid];

0 commit comments

Comments
 (0)