Skip to content

Commit

Permalink
CUDA: fix shared memory access condition for mmv (ggerganov#10740)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesGaessler authored Dec 9, 2024
1 parent c37fb4c commit 26a8406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml/src/ggml-cuda/mmv.cu
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static __global__ void mul_mat_vec(
if (block_size > WARP_SIZE) {
buf_iw[tid/WARP_SIZE] = sumf;
__syncthreads();
if (tid > WARP_SIZE) {
if (tid >= WARP_SIZE) {
return;
}
sumf = buf_iw[tid];
Expand Down

0 comments on commit 26a8406

Please sign in to comment.