忘记处理core了(

This commit is contained in:
shenjack 2024-04-27 21:23:59 +08:00
parent 38f09583ae
commit f06ac54632
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -101,11 +101,6 @@ fn main() {
warn!("创建文件夹失败: {}", e); warn!("创建文件夹失败: {}", e);
} }
if cli_arg.bench {
cli_arg.thread_count = 1;
set_thread2core(cli_arg.bench_core);
}
info!("开始: {} 结尾: {}", cli_arg.start, cli_arg.end); info!("开始: {} 结尾: {}", cli_arg.start, cli_arg.end);
info!("线程数: {}", cli_arg.thread_count); info!("线程数: {}", cli_arg.thread_count);
info!("八围预期: {}", cli_arg.prop_expect); info!("八围预期: {}", cli_arg.prop_expect);
@ -116,7 +111,8 @@ fn main() {
if cli_arg.bench { if cli_arg.bench {
info!("开始 benchmark"); info!("开始 benchmark");
let config = cli_arg.as_cacl_config(); let mut config = cli_arg.as_cacl_config();
config.core_affinity = Some(0001 << cli_arg.bench_core);
cacluate::cacl(config, 1, &out_path); cacluate::cacl(config, 1, &out_path);
} else { } else {
let mut n = 0; let mut n = 0;