Skip to content

Commit

Permalink
threadpool: fix indent in set_threadpool call
Browse files Browse the repository at this point in the history
  • Loading branch information
max-krasnyansky committed Aug 29, 2024
1 parent c6c27b1 commit b97bd67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ggml/src/ggml-backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

if (ctx->threadpool && ctx->threadpool != threadpool) {
// already had a different threadpool, pause/suspend it before switching
ggml_threadpool_pause(ctx->threadpool);
// already had a different threadpool, pause/suspend it before switching
ggml_threadpool_pause(ctx->threadpool);
}
ctx->threadpool = threadpool;
}
Expand Down

0 comments on commit b97bd67

Please sign in to comment.