From 3408c008f62db0cbc260544f1756545a60f6c237 Mon Sep 17 00:00:00 2001 From: mingfeima Date: Mon, 12 Aug 2024 00:11:02 -0700 Subject: [PATCH] fix compiler warning when amx is not enabled --- ggml/src/ggml-amx/mmq.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ggml/src/ggml-amx/mmq.cpp b/ggml/src/ggml-amx/mmq.cpp index b3d6986d7ffa6..e14e01c70b910 100644 --- a/ggml/src/ggml-amx/mmq.cpp +++ b/ggml/src/ggml-amx/mmq.cpp @@ -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"); }