@@ -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)
@@ -18859,7 +18859,7 @@ void ggml_release_threadpool(struct ggml_compute_threadpool* threadpool) {
18859
18859
18860
18860
#ifndef GGML_USE_OPENMP
18861
18861
struct ggml_compute_state* workers = threadpool->workers;
18862
- const int32_t n_threads = threadpool->n_threads_max;
18862
+ const int n_threads = threadpool->n_threads_max;
18863
18863
18864
18864
ggml_mutex_lock(&threadpool->mutex);
18865
18865
@@ -18869,7 +18869,7 @@ void ggml_release_threadpool(struct ggml_compute_threadpool* threadpool) {
18869
18869
ggml_cond_broadcast(&threadpool->cond);
18870
18870
ggml_mutex_unlock(&threadpool->mutex);
18871
18871
18872
- for (int32_t j = 1; j < n_threads; j++) {
18872
+ for (int j = 1; j < n_threads; j++) {
18873
18873
int32_t rc = ggml_thread_join(workers[j].thrd, NULL);
18874
18874
GGML_ASSERT(rc == GGML_EXIT_SUCCESS || rc == GGML_EXIT_ABORTED);
18875
18875
UNUSED(rc);
@@ -18925,11 +18925,11 @@ void ggml_resume_threadpool(struct ggml_compute_threadpool * threadpool) {
18925
18925
18926
18926
struct ggml_cplan ggml_graph_plan(
18927
18927
const struct ggml_cgraph * cgraph,
18928
- int32_t n_threads,
18928
+ int n_threads,
18929
18929
struct ggml_compute_threadpool * threadpool) {
18930
18930
18931
18931
if (threadpool == NULL) {
18932
- GGML_PRINT_DEBUG("Threadpool is not specified. Will create a disposable threadpool : n_threads %u \n", n_threads);
18932
+ GGML_PRINT_DEBUG("Threadpool is not specified. Will create a disposable threadpool : n_threads %d \n", n_threads);
18933
18933
}
18934
18934
if (n_threads <= 0) {
18935
18935
n_threads = threadpool ? threadpool->n_threads_max : GGML_DEFAULT_N_THREADS;
@@ -19348,13 +19348,13 @@ enum ggml_status ggml_graph_compute(struct ggml_cgraph * cgraph, struct ggml_cpl
19348
19348
GGML_ASSERT(cplan->n_threads > 0);
19349
19349
GGML_ASSERT(cplan->work_size == 0 || cplan->work_data != NULL);
19350
19350
19351
- int32_t n_threads = cplan->n_threads;
19351
+ int n_threads = cplan->n_threads;
19352
19352
struct ggml_compute_threadpool * threadpool = cplan->threadpool;
19353
19353
19354
19354
bool disposable_threadpool = false;
19355
19355
19356
19356
if (threadpool == NULL) {
19357
- GGML_PRINT_DEBUG("Threadpool is not specified. Will create a disposable threadpool : n_threads %u \n", n_threads);
19357
+ GGML_PRINT_DEBUG("Threadpool is not specified. Will create a disposable threadpool : n_threads %d \n", n_threads);
19358
19358
disposable_threadpool = true;
19359
19359
19360
19360
struct ggml_threadpool_params ttp = {
0 commit comments