From 1e464cfa9489295c3482ad47f04e398118267abd Mon Sep 17 00:00:00 2001 From: qiyuanhuakai Date: Fri, 26 Dec 2025 22:47:24 +0800 Subject: [PATCH] Update correct_round1.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed:When users specify the thread count via -t, the correct_round1 stage does not honor the user-provided value while generating recorrected.fa. Instead, it uses all available CPU cores, making the thread setting ineffective. 修复:当用户通过 -t指定线程数时,correct_round1 阶段在生成/写入 recorrected.fa 的过程中没有按用户设置的线程数运行,而是会占用机器所有可用 CPU 核心,导致线程参数实际失效。 --- aligner-correct/correct_round1.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aligner-correct/correct_round1.h b/aligner-correct/correct_round1.h index accf7bd..912f322 100644 --- a/aligner-correct/correct_round1.h +++ b/aligner-correct/correct_round1.h @@ -12,6 +12,8 @@ void correct_round2(chat_opt_t *chat_opt, hifiasm_opt_t *asm_opt); void correct_round1(chat_opt_t *chat_opt) { + // FIX: Add this line to use the user-specified thread count + int threads = chat_opt->thread_num; std::cout << "correct_round1 thread:" << chat_opt->thread_num << std::endl; // PRINT_LINE_FUNC(); // if (chat_opt->dBGFile != NULL) @@ -278,4 +280,4 @@ void correct_round2(chat_opt_t *chat_opt, hifiasm_opt_t *asm_opt) return; } -#endif \ No newline at end of file +#endif