Skip to content

Commit 7ad554f

Browse files
committed
metal : fix unused warnings (#0)
1 parent 5ee99c3 commit 7ad554f

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

ggml-metal.metal

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4027,7 +4027,10 @@ void kernel_mul_mv_iq2_xxs_f32_impl(
40274027
y4 += 32 * 32;
40284028
}
40294029
#else
4030-
// TODO
4030+
(void) x;
4031+
(void) y;
4032+
(void) yl;
4033+
(void) nb32;
40314034
#endif
40324035

40334036
for (int row = 0; row < N_DST; ++row) {
@@ -4170,7 +4173,10 @@ void kernel_mul_mv_iq2_xs_f32_impl(
41704173
y4 += 32 * 32;
41714174
}
41724175
#else
4173-
// TODO
4176+
(void) x;
4177+
(void) y;
4178+
(void) yl;
4179+
(void) nb32;
41744180
#endif
41754181

41764182
for (int row = 0; row < N_DST; ++row) {
@@ -4306,7 +4312,10 @@ void kernel_mul_mv_iq3_xxs_f32_impl(
43064312
y4 += 32 * 32;
43074313
}
43084314
#else
4309-
// TODO
4315+
(void) x;
4316+
(void) y;
4317+
(void) yl;
4318+
(void) nb32;
43104319
#endif
43114320

43124321
for (int row = 0; row < N_DST; ++row) {
@@ -4424,7 +4433,10 @@ void kernel_mul_mv_iq1_s_f32_impl(
44244433
y4 += 16 * 32;
44254434
}
44264435
#else
4427-
// TODO
4436+
(void) x;
4437+
(void) y;
4438+
(void) yl;
4439+
(void) nb32;
44284440
#endif
44294441

44304442
for (int row = 0; row < N_DST; ++row) {
@@ -4659,6 +4671,8 @@ void dequantize_q4_K(device const block_q4_K *xb, short il, thread type4x4 & reg
46594671
const float dl = d * sc[0];
46604672
const float ml = min * sc[1];
46614673
#else
4674+
(void) get_scale_min_k4_just2;
4675+
46624676
q = q + 16 * (il&1);
46634677
device const uint8_t * s = xb->scales;
46644678
device const half2 * dh = (device const half2 *)xb->d;

0 commit comments

Comments
 (0)