Explorar o código

CUDA: fix shared memory access condition for mmv (#10740)

Johannes Gäßler hai 1 ano
pai
achega
26a8406ba9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ggml/src/ggml-cuda/mmv.cu

+ 1 - 1
ggml/src/ggml-cuda/mmv.cu

@@ -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];