From f3c94917e5efd7e1ca77f80c1c8b03b91b62178b Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Wed, 19 Aug 2026 20:48:01 +0800 Subject: [PATCH] =?UTF-8?q?debug(phase2):=20=E6=8F=92=E6=A1=A9=20llc=20wor?= =?UTF-8?q?ker=20=E6=89=93=E5=8D=B0=20system=20=E8=BF=94=E5=9B=9E=E7=A0=81?= =?UTF-8?q?=EF=BC=8C=E5=AE=9A=E4=BD=8D=20ClassArrayTest=20=E5=9B=BA?= =?UTF-8?q?=E5=AE=9A=20llc=20=E5=A4=B1=E8=B4=A5=E8=AF=AF=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/lib/core/BuildPipeline.vp | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/App/lib/core/BuildPipeline.vp b/App/lib/core/BuildPipeline.vp index 6acee94..dc0667b 100644 --- a/App/lib/core/BuildPipeline.vp +++ b/App/lib/core/BuildPipeline.vp @@ -512,11 +512,25 @@ def _llc_task_worker(arg: t.CPtr) -> t.CPtr: task: LlcTask | t.CPtr = (LlcTask | t.CPtr)(arg) if task is None: return t.CPtr(0) + #region debug-point LLC0 + stdio.printf("[LLC-DBG] worker 开始 sha1=%s cmd=%s\n", + (task.ModuleSha1 if task.ModuleSha1 is not None else "?"), + (task.LlcCmd if task.LlcCmd is not None else "?")) + #endregion if task.OptCmd is not None: - if stdlib.system(task.OptCmd) != 0: + opt_rc: int = stdlib.system(task.OptCmd) + #region debug-point LLC1 + stdio.printf("[LLC-DBG] opt rc=%d\n", opt_rc) + #endregion + if opt_rc != 0: task.Result = 1 return t.CPtr(0) - if stdlib.system(task.LlcCmd) != 0: + llc_rc: int = stdlib.system(task.LlcCmd) + #region debug-point LLC2 + stdio.printf("[LLC-DBG] llc rc=%d sha1=%s\n", llc_rc, + (task.ModuleSha1 if task.ModuleSha1 is not None else "?")) + #endregion + if llc_rc != 0: task.Result = 1 else: task.Result = 0 @@ -569,6 +583,10 @@ def run_llc_parallel(tasks: bytes, task_count: int, max_threads: int) -> int: tsk2: LlcTask | t.CPtr = (LlcTask | t.CPtr)(t.CVoid( t.CUInt64T(tasks) + t.CSizeT(batch_start + j) * slot_size, t.CPtr)) if tsk2 is not None and tsk2.Result != 0: + #region debug-point LLC3 + stdio.printf("[LLC-DBG] 失败槽 Result=%d sha1=%s\n", tsk2.Result, + (tsk2.ModuleSha1 if tsk2.ModuleSha1 is not None else "?")) + #endregion fb: str = VLogger.fmt_buf() if fb is not None: viperlib.snprintf(fb, 1024, "llc 编译失败: %s (cmd=%s)",