From 740e8366e9acc2ca7b2143106bc67a74377954d4 Mon Sep 17 00:00:00 2001 From: Carmen Esteban Date: Sun, 5 Apr 2026 18:25:15 +0200 Subject: [PATCH] Fix link: add ggml-cpu for threadpool symbols, remove unimplemented fn Co-Authored-By: Claude Opus 4.6 --- CMakeLists.txt | 2 +- src/ar-sampler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a08eaa8..4c5ca8f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ target_include_directories(diffuse PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/src ) -target_link_libraries(diffuse PUBLIC ggml) +target_link_libraries(diffuse PUBLIC ggml ggml-cpu) # ── CLI tools ─────────────────────────────────────────────────── if(DIFFUSE_BUILD_TOOLS) diff --git a/src/ar-sampler.cpp b/src/ar-sampler.cpp index dbdf289..946bdde 100644 --- a/src/ar-sampler.cpp +++ b/src/ar-sampler.cpp @@ -168,7 +168,7 @@ std::vector ar_generate( cache.threadpool = ggml_threadpool_new(&tparams); if (cache.threadpool) { DIFFUSE_LOG(" threadpool: %d threads (persistent, high priority)", - ggml_threadpool_get_n_threads(cache.threadpool)); + ctx->n_threads); } }