Skip to content

Commit

Permalink
clang being pedantic
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamayuq committed Feb 5, 2025
1 parent d596dc7 commit daa949d
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions src/ggml-cpu/ggml-cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -5015,7 +5015,7 @@ static size_t ggml_compute_forward_acc(size_t continuation,
case GGML_TYPE_F32:
{
return ggml_compute_forward_acc_f32(continuation, params, dst);
} break;
}
case GGML_TYPE_F16:
case GGML_TYPE_BF16:
case GGML_TYPE_Q4_0:
Expand Down Expand Up @@ -5045,7 +5045,6 @@ static size_t ggml_compute_forward_acc(size_t continuation,
GGML_ABORT("fatal error");
}
}
return 0;
}

// ggml_compute_forward_sub
Expand Down Expand Up @@ -5936,13 +5935,12 @@ static size_t ggml_compute_forward_count_equal(size_t continuation,
case GGML_TYPE_I32:
{
return ggml_compute_forward_count_equal_i32(continuation, params, dst);
} break;
}
default:
{
GGML_ABORT("fatal error");
}
}
return 0;
}

// ggml_compute_forward_repeat
Expand Down Expand Up @@ -8116,7 +8114,7 @@ static size_t ggml_compute_forward_out_prod(size_t continuation,
case GGML_TYPE_IQ2_S:
{
return ggml_compute_forward_out_prod_q_f32(continuation, params, dst);
} break;
}
case GGML_TYPE_F16:
{
GGML_ABORT("fatal error"); // todo
Expand All @@ -8125,13 +8123,12 @@ static size_t ggml_compute_forward_out_prod(size_t continuation,
case GGML_TYPE_F32:
{
return ggml_compute_forward_out_prod_f32(continuation, params, dst);
} break;
}
default:
{
GGML_ABORT("fatal error");
}
}
return 0;
}

// ggml_compute_forward_scale
Expand Down Expand Up @@ -8401,7 +8398,6 @@ static size_t ggml_compute_forward_set(size_t continuation,
GGML_ABORT("fatal error");
}
}
return 0;
}

// ggml_compute_forward_cpy
Expand Down Expand Up @@ -8957,7 +8953,6 @@ static size_t ggml_compute_forward_diag_mask_inf(size_t continuation,
GGML_ABORT("fatal error");
}
}
return 0;
}

static size_t ggml_compute_forward_diag_mask_zero(size_t continuation,
Expand All @@ -8970,13 +8965,12 @@ static size_t ggml_compute_forward_diag_mask_zero(size_t continuation,
case GGML_TYPE_F32:
{
return ggml_compute_forward_diag_mask_f32(continuation, params, dst, 0);
} break;
}
default:
{
GGML_ABORT("fatal error");
}
}
return 0;
}

// ggml_compute_forward_soft_max
Expand Down Expand Up @@ -10012,17 +10006,16 @@ static size_t ggml_compute_forward_conv_transpose_1d(size_t continuation,
case GGML_TYPE_F16:
{
return ggml_compute_forward_conv_transpose_1d_f16_f32(continuation, params, dst);
} break;
}
case GGML_TYPE_F32:
{
return ggml_compute_forward_conv_transpose_1d_f32(continuation, params, dst);
} break;
}
default:
{
GGML_ABORT("fatal error");
}
}
return 0;
}

// ggml_compute_forward_im2col_f32
Expand Down Expand Up @@ -11572,7 +11565,6 @@ static size_t ggml_compute_forward_flash_attn_back(size_t continuation,
GGML_ABORT("fatal error");
}
}
return 0;
}

// ggml_compute_forward_ssm_conv
Expand Down Expand Up @@ -12084,7 +12076,6 @@ static size_t ggml_compute_forward_add_rel_pos(size_t continuation,
GGML_ABORT("fatal error");
}
}
return 0;
}

// ggml_compute_forward_rwkv_wkv6
Expand Down Expand Up @@ -12291,13 +12282,12 @@ static size_t ggml_compute_forward_rwkv_wkv6(size_t continuation,
case GGML_TYPE_F32:
{
return ggml_compute_forward_rwkv_wkv6_f32(continuation, params, dst);
} break;
}
default:
{
GGML_ABORT("fatal error");
}
}
return 0;
}

// ggml_compute_forward_gla
Expand Down Expand Up @@ -12498,7 +12488,6 @@ static size_t ggml_compute_forward_gla(size_t continuation,
GGML_ABORT("fatal error");
}
}
return 0;
}

// ggml_compute_forward_map_unary
Expand Down Expand Up @@ -12803,13 +12792,12 @@ static size_t ggml_compute_forward_cross_entropy_loss(size_t continuation,
case GGML_TYPE_F32:
{
return ggml_compute_forward_cross_entropy_loss_f32(continuation, params, dst);
} break;
}
default:
{
GGML_ABORT("fatal error");
}
}
return 0;
}

// ggml_compute_forward_cross_entropy_loss_back
Expand Down Expand Up @@ -13000,7 +12988,6 @@ static size_t ggml_compute_forward_error(size_t continuation,
UNUSED(params);
UNUSED(dst);
GGML_ABORT("fatal error");
return 0;
}

typedef size_t (*ggml_op_function)(size_t, const struct ggml_compute_params*, struct ggml_tensor*);
Expand Down

0 comments on commit daa949d

Please sign in to comment.