ggerganov commited on
Commit
d12cda5
·
unverified ·
1 Parent(s): 2f3a004

metal : fix unused warnings (llama/0)

Browse files
Files changed (1) hide show
  1. ggml-metal.metal +18 -4
ggml-metal.metal CHANGED
@@ -4027,7 +4027,10 @@ void kernel_mul_mv_iq2_xxs_f32_impl(
4027
  y4 += 32 * 32;
4028
  }
4029
  #else
4030
- // TODO
 
 
 
4031
  #endif
4032
 
4033
  for (int row = 0; row < N_DST; ++row) {
@@ -4170,7 +4173,10 @@ void kernel_mul_mv_iq2_xs_f32_impl(
4170
  y4 += 32 * 32;
4171
  }
4172
  #else
4173
- // TODO
 
 
 
4174
  #endif
4175
 
4176
  for (int row = 0; row < N_DST; ++row) {
@@ -4306,7 +4312,10 @@ void kernel_mul_mv_iq3_xxs_f32_impl(
4306
  y4 += 32 * 32;
4307
  }
4308
  #else
4309
- // TODO
 
 
 
4310
  #endif
4311
 
4312
  for (int row = 0; row < N_DST; ++row) {
@@ -4424,7 +4433,10 @@ void kernel_mul_mv_iq1_s_f32_impl(
4424
  y4 += 16 * 32;
4425
  }
4426
  #else
4427
- // TODO
 
 
 
4428
  #endif
4429
 
4430
  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
4659
  const float dl = d * sc[0];
4660
  const float ml = min * sc[1];
4661
  #else
 
 
4662
  q = q + 16 * (il&1);
4663
  device const uint8_t * s = xb->scales;
4664
  device const half2 * dh = (device const half2 *)xb->d;
 
4027
  y4 += 32 * 32;
4028
  }
4029
  #else
4030
+ (void) x;
4031
+ (void) y;
4032
+ (void) yl;
4033
+ (void) nb32;
4034
  #endif
4035
 
4036
  for (int row = 0; row < N_DST; ++row) {
 
4173
  y4 += 32 * 32;
4174
  }
4175
  #else
4176
+ (void) x;
4177
+ (void) y;
4178
+ (void) yl;
4179
+ (void) nb32;
4180
  #endif
4181
 
4182
  for (int row = 0; row < N_DST; ++row) {
 
4312
  y4 += 32 * 32;
4313
  }
4314
  #else
4315
+ (void) x;
4316
+ (void) y;
4317
+ (void) yl;
4318
+ (void) nb32;
4319
  #endif
4320
 
4321
  for (int row = 0; row < N_DST; ++row) {
 
4433
  y4 += 16 * 32;
4434
  }
4435
  #else
4436
+ (void) x;
4437
+ (void) y;
4438
+ (void) yl;
4439
+ (void) nb32;
4440
  #endif
4441
 
4442
  for (int row = 0; row < N_DST; ++row) {
 
4671
  const float dl = d * sc[0];
4672
  const float ml = min * sc[1];
4673
  #else
4674
+ (void) get_scale_min_k4_just2;
4675
+
4676
  q = q + 16 * (il&1);
4677
  device const uint8_t * s = xb->scales;
4678
  device const half2 * dh = (device const half2 *)xb->d;