From 2d57f80af9f0dbaa0752f69a3dbfd99b24ef9b43 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:10:30 +0800 Subject: [PATCH] Fix compilation on macos --- otherarch/sdcpp/ggml_extend.hpp | 10 +++++----- otherarch/whispercpp/whisper.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/otherarch/sdcpp/ggml_extend.hpp b/otherarch/sdcpp/ggml_extend.hpp index 5f902e355..3f1b4d710 100644 --- a/otherarch/sdcpp/ggml_extend.hpp +++ b/otherarch/sdcpp/ggml_extend.hpp @@ -878,11 +878,11 @@ public: ggml_backend_cpu_set_n_threads(backend, n_threads); } -#ifdef SD_USE_METAL - if (ggml_backend_is_metal(backend)) { - ggml_backend_metal_set_n_cb(backend, n_threads); - } -#endif +// #ifdef SD_USE_METAL +// if (ggml_backend_is_metal(backend)) { +// ggml_backend_metal_set_n_cb(backend, n_threads); +// } +// #endif ggml_backend_graph_compute(backend, gf); diff --git a/otherarch/whispercpp/whisper.cpp b/otherarch/whispercpp/whisper.cpp index 12452ada0..fcbeb1487 100644 --- a/otherarch/whispercpp/whisper.cpp +++ b/otherarch/whispercpp/whisper.cpp @@ -183,11 +183,11 @@ static bool ggml_graph_compute_helper( if (ggml_backend_is_cpu(backend)) { ggml_backend_cpu_set_n_threads(backend, n_threads); } -#ifdef GGML_USE_METAL - if (ggml_backend_is_metal(backend)) { - ggml_backend_metal_set_n_cb(backend, n_threads); - } -#endif +// #ifdef GGML_USE_METAL +// if (ggml_backend_is_metal(backend)) { +// ggml_backend_metal_set_n_cb(backend, n_threads); +// } +// #endif return ggml_backend_graph_compute(backend, graph) == GGML_STATUS_SUCCESS; }