This commit is contained in:
shenjack-5600u 2024-04-28 21:35:34 +08:00
parent b61ae6ec6b
commit a611441f17
Signed by: shenjack
GPG Key ID: FDF9864E11C7E79F

View File

@ -139,8 +139,8 @@ fn main() {
n += 1; n += 1;
let mut config = cli_arg.as_cacl_config(); let mut config = cli_arg.as_cacl_config();
// 核心亲和性: n, n+1 // 核心亲和性: n, n+1
config.core_affinity = Some((1 << i) + (1 << (i + 1))); config.core_affinity = Some(1 << i);
cores |= (1 << i) + (1 << (i + 1)); cores |= 1 << i;
let out_path = out_path.clone(); let out_path = out_path.clone();
let thread_name = format!("thread_{}", n); let thread_name = format!("thread_{}", n);
threads.push(std::thread::spawn(move || { threads.push(std::thread::spawn(move || {