From 5ad9c2f320fe9888cd39c3e8910ee38018fd13e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E9=B3=B3?= Date: Mon, 31 Jul 2023 09:35:55 +0800 Subject: [PATCH] Fix broken build for LLAMA_METAL a113689 broke the build with: ``` llama.cpp:1828:50: error: use of undeclared identifier 'cur' ggml_metal_get_tensor (lctx.ctx_metal, cur); ``` This commit removes the stray line to repair the build. --- llama.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index 6f381f30f..db8e0e13d 100644 --- a/llama.cpp +++ b/llama.cpp @@ -1825,7 +1825,6 @@ static bool llama_eval_internal( //} ggml_metal_set_n_cb (lctx.ctx_metal, n_threads); ggml_metal_graph_compute(lctx.ctx_metal, gf); - ggml_metal_get_tensor (lctx.ctx_metal, cur); } else { // IMPORTANT: // Since we don't have efficient Matrix x Matrix Metal multiplication yet, we fallback to vanilla