Skip to content

Commit 463bbf2

Browse files
authored
CUDA: add unused vars to mmvf and mmvq (#16807)
1 parent ad8d36b commit 463bbf2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ggml/src/ggml-cuda/mmvf.cu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,10 @@ static __global__ void mul_mat_vec_f(
343343
}
344344

345345
dst[tid*stride_col_dst + row] = value;
346+
347+
if constexpr (!has_fusion) {
348+
GGML_UNUSED_VARS(use_gate, use_bias, use_gate_bias, glu_op, gate_x, x_bias, gate_bias, sumf_gate);
349+
}
346350
}
347351

348352
template<typename T, typename type_acc, int ncols_dst, int block_size>

ggml/src/ggml-cuda/mmvq.cu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ static __global__ void mul_mat_vec_q(
310310
dst[j*stride_col_dst + threadIdx.x] = result;
311311
}
312312
}
313+
314+
if constexpr (!has_fusion) {
315+
GGML_UNUSED_VARS(use_gate, use_bias, use_gate_bias, active_glu, gate_bias, x_bias, tmp_gate);
316+
}
313317
}
314318

315319
static std::pair<dim3, dim3> calc_launch_params(

0 commit comments

Comments
 (0)