Skip to content

Commit fbddb26

Browse files
committed
ggml-cuda : use i and j instead of i0 and i in vec_dot_tq2_0_q8_1
1 parent b6fc9f0 commit fbddb26

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ggml/src/ggml-cuda/vecdotq.cuh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -831,13 +831,13 @@ static __device__ __forceinline__ float vec_dot_tq2_0_q8_1(
831831
}
832832

833833
#pragma unroll
834-
for (int i0 = 0; i0 < QR2_0; ++i0) {
835-
const block_q8_1 * bq8i = bq8_1 + bq8_offset + i0;
834+
for (int i = 0; i < QR2_0; ++i) {
835+
const block_q8_1 * bq8i = bq8_1 + bq8_offset + i;
836836

837-
for (int i = 0; i < VDR_TQ2_0_Q8_1_MMVQ; ++i) {
838-
u[VDR_TQ2_0_Q8_1_MMVQ*i0 + i] = get_int_b4(bq8i->qs, (iqs % QI8_1) + i);
837+
for (int j = 0; j < VDR_TQ2_0_Q8_1_MMVQ; ++j) {
838+
u[VDR_TQ2_0_Q8_1_MMVQ*i + j] = get_int_b4(bq8i->qs, (iqs % QI8_1) + j);
839839
}
840-
d8[i0] = __low2float(bq8i->ds);
840+
d8[i] = __low2float(bq8i->ds);
841841
}
842842

843843
return vec_dot_tq2_0_q8_1_impl<VDR_TQ2_0_Q8_1_MMVQ>(v, u, btq2_0->d, d8);

0 commit comments

Comments
 (0)