@@ -1973,8 +1973,8 @@ struct ggml_compute_threadpool {
1973
1973
atomic_bool pause; // Used for pausing the threadpool or individual threads
1974
1974
1975
1975
struct ggml_compute_state * workers; // per thread state
1976
- int32_t n_threads_max; // number of threads in the pool
1977
- int32_t n_threads_cur; // number of threads used in the current graph
1976
+ int n_threads_max; // number of threads in the pool
1977
+ int n_threads_cur; // number of threads used in the current graph
1978
1978
1979
1979
int32_t prio; // Scheduling priority
1980
1980
uint32_t poll; // Polling level (0 - no polling)
@@ -18846,7 +18846,7 @@ void ggml_release_threadpool(struct ggml_compute_threadpool* threadpool) {
18846
18846
18847
18847
#ifndef GGML_USE_OPENMP
18848
18848
struct ggml_compute_state* workers = threadpool->workers;
18849
- const int32_t n_threads = threadpool->n_threads_max;
18849
+ const int n_threads = threadpool->n_threads_max;
18850
18850
18851
18851
ggml_mutex_lock(&threadpool->mutex);
18852
18852
@@ -18856,7 +18856,7 @@ void ggml_release_threadpool(struct ggml_compute_threadpool* threadpool) {
18856
18856
ggml_cond_broadcast(&threadpool->cond);
18857
18857
ggml_mutex_unlock(&threadpool->mutex);
18858
18858
18859
- for (int32_t j = 1; j < n_threads; j++) {
18859
+ for (int j = 1; j < n_threads; j++) {
18860
18860
int32_t rc = ggml_thread_join(workers[j].thrd, NULL);
18861
18861
GGML_ASSERT(rc == GGML_EXIT_SUCCESS || rc == GGML_EXIT_ABORTED);
18862
18862
UNUSED(rc);
@@ -18912,11 +18912,11 @@ void ggml_resume_threadpool(struct ggml_compute_threadpool * threadpool) {
18912
18912
18913
18913
struct ggml_cplan ggml_graph_plan(
18914
18914
const struct ggml_cgraph * cgraph,
18915
- int32_t n_threads,
18915
+ int n_threads,
18916
18916
struct ggml_compute_threadpool * threadpool) {
18917
18917
18918
18918
if (threadpool == NULL) {
18919
- GGML_PRINT_DEBUG("Threadpool is not specified. Will create a disposable threadpool : n_threads %u \n", n_threads);
18919
+ GGML_PRINT_DEBUG("Threadpool is not specified. Will create a disposable threadpool : n_threads %d \n", n_threads);
18920
18920
}
18921
18921
if (n_threads <= 0) {
18922
18922
n_threads = threadpool ? threadpool->n_threads_max : GGML_DEFAULT_N_THREADS;
@@ -19335,13 +19335,13 @@ enum ggml_status ggml_graph_compute(struct ggml_cgraph * cgraph, struct ggml_cpl
19335
19335
GGML_ASSERT(cplan->n_threads > 0);
19336
19336
GGML_ASSERT(cplan->work_size == 0 || cplan->work_data != NULL);
19337
19337
19338
- int32_t n_threads = cplan->n_threads;
19338
+ int n_threads = cplan->n_threads;
19339
19339
struct ggml_compute_threadpool * threadpool = cplan->threadpool;
19340
19340
19341
19341
bool disposable_threadpool = false;
19342
19342
19343
19343
if (threadpool == NULL) {
19344
- GGML_PRINT_DEBUG("Threadpool is not specified. Will create a disposable threadpool : n_threads %u \n", n_threads);
19344
+ GGML_PRINT_DEBUG("Threadpool is not specified. Will create a disposable threadpool : n_threads %d \n", n_threads);
19345
19345
disposable_threadpool = true;
19346
19346
19347
19347
struct ggml_threadpool_params ttp = {
0 commit comments