MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / attach_threadpool

Method attach_threadpool

smallthinker/src/llama-context.cpp:560–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560void llama_context::attach_threadpool(
561 ggml_threadpool_t threadpool,
562 ggml_threadpool_t threadpool_batch) {
563 LLAMA_LOG_DEBUG("%s: call\n", __func__);
564
565 this->threadpool = threadpool;
566 this->threadpool_batch = threadpool_batch ? threadpool_batch : threadpool;
567}
568
569void llama_context::detach_threadpool() {
570 LLAMA_LOG_DEBUG("%s: call\n", __func__);

Callers 1

llama_attach_threadpoolFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected