Skip to content

Commit

Permalink
fix compiler warning when amx is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mingfeima committed Aug 12, 2024
1 parent 980b433 commit 3408c00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ggml/src/ggml-amx/mmq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2564,11 +2564,17 @@ bool ggml_amx_init() {
}

bool ggml_compute_forward_mul_mat_use_amx(struct ggml_tensor * dst) {
GGML_UNUSED(dst);
fprintf(stderr, "GGML is not compiled with AMX support!\n");
return false;
}

void ggml_mul_mat_amx(struct ggml_tensor * dst, int nth, int ith, void * wdata, int wsize) {
GGML_UNUSED(dst);
GGML_UNUSED(nth);
GGML_UNUSED(ith);
GGML_UNUSED(wdata);
GGML_UNUSED(wsize);
fprintf(stderr, "GGML is not compiled with AMX support!\n");
}

Expand Down

0 comments on commit 3408c00

Please sign in to comment.