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

Function llama_set_n_threads

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

Source from the content-addressed store, hash-verified

2311}
2312
2313void llama_set_n_threads(llama_context * ctx, int32_t n_threads, int32_t n_threads_batch) {
2314 ctx->set_n_threads(n_threads, n_threads_batch);
2315}
2316
2317int32_t llama_n_threads(llama_context * ctx) {
2318 return ctx->n_threads();

Callers 2

test_promptFunction · 0.50
test_genFunction · 0.50

Calls 1

set_n_threadsMethod · 0.45

Tested by 2

test_promptFunction · 0.40
test_genFunction · 0.40