From f181c28eddd29f0ccc39abf95271a1bd2c968613 Mon Sep 17 00:00:00 2001 From: jon-chuang Date: Thu, 13 Apr 2023 13:01:18 +0800 Subject: [PATCH] fix --- examples/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common.cpp b/examples/common.cpp index 1c5d38450..ede8d1ba7 100644 --- a/examples/common.cpp +++ b/examples/common.cpp @@ -51,7 +51,7 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) { size_t len = sizeof(num_physical_cores); int result = sysctlbyname("hw.physicalcpu", &num_physical_cores, &len, NULL, 0); if (result == 0) { - params.n_threads = std::stoul(line); + params.n_threads = num_physical_cores; } #elif defined(_WIN32) || defined(_WIN64) SYSTEM_INFO sysinfo;