|
|
@@ -175,7 +175,10 @@ int main(int argc, char ** argv) {
|
|
|
struct ggml_threadpool_params tpp =
|
|
|
ggml_threadpool_params_from_cpu_params(params.cpuparams);
|
|
|
|
|
|
- set_process_priority(params.cpuparams.priority);
|
|
|
+ if (!set_process_priority(params.cpuparams.priority)) {
|
|
|
+ LOG_ERR("%s: error: failed to set process priority\n", __func__);
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
|
|
|
struct ggml_threadpool * threadpool_batch = NULL;
|
|
|
if (!ggml_threadpool_params_match(&tpp, &tpp_batch)) {
|