threadpool: fix indent in set_threadpool call
This commit is contained in:
parent
c6c27b140a
commit
b97bd67e2b
1 changed files with 2 additions and 2 deletions
|
@ -912,8 +912,8 @@ void ggml_backend_cpu_set_threadpool(ggml_backend_t backend_cpu, ggml_threadpool
|
||||||
struct ggml_backend_cpu_context * ctx = (struct ggml_backend_cpu_context *)backend_cpu->context;
|
struct ggml_backend_cpu_context * ctx = (struct ggml_backend_cpu_context *)backend_cpu->context;
|
||||||
|
|
||||||
if (ctx->threadpool && ctx->threadpool != threadpool) {
|
if (ctx->threadpool && ctx->threadpool != threadpool) {
|
||||||
// already had a different threadpool, pause/suspend it before switching
|
// already had a different threadpool, pause/suspend it before switching
|
||||||
ggml_threadpool_pause(ctx->threadpool);
|
ggml_threadpool_pause(ctx->threadpool);
|
||||||
}
|
}
|
||||||
ctx->threadpool = threadpool;
|
ctx->threadpool = threadpool;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue