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

Method set_n_threads

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

Source from the content-addressed store, hash-verified

574}
575
576void llama_context::set_n_threads(int32_t n_threads, int32_t n_threads_batch) {
577 LLAMA_LOG_DEBUG("%s: n_threads = %d, n_threads_batch = %d\n", __func__, n_threads, n_threads_batch);
578
579 cparams.n_threads = n_threads;
580 cparams.n_threads_batch = n_threads_batch;
581}
582
583void llama_context::set_abort_callback(bool (*abort_callback)(void * data), void * abort_callback_data) {
584 LLAMA_LOG_DEBUG("%s: call\n", __func__);

Callers 1

llama_set_n_threadsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected