From 5b416e076a26056de3bb7b91b1a2bc23c99c0b66 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 25 May 2024 15:15:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E5=B8=B8=E5=9D=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miner/docs/updates.md | 2 ++ miner/src/main.rs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/miner/docs/updates.md b/miner/docs/updates.md index 0ffe6e6..aea89dc 100644 --- a/miner/docs/updates.md +++ b/miner/docs/updates.md @@ -8,6 +8,8 @@ - 现在可以直接使用 `--core-pick` 选项来选择核心了 - 并且单线程模式下效果和 benchmark 模式下一样了 +> 然后我准备改成内置多进程模式 + ### 0.3.0 把 `--bench-core` 改成了 `--core-pick` diff --git a/miner/src/main.rs b/miner/src/main.rs index 059f1f1..a365d1f 100644 --- a/miner/src/main.rs +++ b/miner/src/main.rs @@ -39,6 +39,9 @@ pub struct Command { /// 单线程模式模式下的核心亲和性核心号 (从 0 开始) #[arg(long = "core-pick", default_value_t = 0)] pub pick_core: usize, + /// 是否是子进程 + #[arg(short = 's')] + pub is_sub_process: bool, } impl Command { @@ -121,7 +124,6 @@ fn main() { info!("队伍名: {}", cli_arg.team); info!("输出文件名: {:?}", out_path); info!("预期状态输出时间间隔: {} 秒", cli_arg.report_interval); - info!("是否启动 benchmark 模式: {}", cli_arg.bench); cacluate::start_main(cli_arg, out_path);