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); } }