Skip to content

Commit 715bd0b

Browse files
committed
initialize buf_iw_gate
1 parent a0c67c7 commit 715bd0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ggml/src/ggml-cuda/mmvf.cu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ static __global__ void mul_mat_vec_f(
3838
if (block_size > warp_size) {
3939
if (tid < warp_size) {
4040
buf_iw[tid] = 0.0f;
41+
if constexpr (has_gate) {
42+
buf_iw_gate[tid] = 0.0f;
43+
}
4144
}
4245
__syncthreads();
4346
}

0 commit comments

Comments
 (0)