with one click
run-cpt-regression
仅负责批量运行 gem5 checkpoint(1次或2次)。不做任何分析。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
仅负责批量运行 gem5 checkpoint(1次或2次)。不做任何分析。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | run-cpt-regression |
| description | 仅负责批量运行 gem5 checkpoint(1次或2次)。不做任何分析。 |
stats.txt、gem5.stdout、gem5.stderr。.codex/skills/run-cpt-regression/scripts/run_cpt_back.py批量跑(默认 ref+opt):
python3 .codex/skills/run-cpt-regression/scripts/run_cpt_back.py \
--debug-dir /tmp/debug/tage-new8
仅跑 opt(跳过 ref):
python3 .codex/skills/run-cpt-regression/scripts/run_cpt_back.py \
--debug-dir /tmp/debug/tage-new8 \
--skip-ref
仅跑指定切片:
python3 .codex/skills/run-cpt-regression/scripts/run_cpt_back.py \
--debug-dir /tmp/debug/tage-new8 \
--slices 2fetch coremark10
带参数运行某个切片, 使用-P:
GCBV_REF_SO=<path/to/riscv64-nemu-interpreter-so> \
./build/RISCV/gem5.opt ./configs/example/kmhv3.py \
--raw-cpt \
--generic-rv-cpt=<path/to/raw_checkpoint.bin> \
-P "system.cpu[0].branchPred.mgsc.enabled=True"
请使用另一个 skill:frontend-pmu-analysis。
由 CPU 性能模拟器建模经验蒸馏而成的行为级建模规范。强调高性能实现、参数化资源模型、细粒度/粗粒度取舍、控制流抽象、复杂度约束和 stats 驱动验证。适用于新增或修改性能模型、把 RTL 机制抽象成模拟器模型、设计参数化微结构模型、决定哪些行为需要细粒度建模、评审 AI 生成的 CPU 性能模拟代码时。
用于编译 XiangShan RTL trace 版 emu、运行 RTL/gem5 的 TAGE trace、并对 gem5 stats/bp.db 与 RTL CondTrace 做共口径聚合比较。适用于 coremark、SPEC checkpoint slice、sjeng_22213 等单切片对拍与首轮分叉定位。
分析香山 MGSC/SC 在前端微测试上的效果。适用于以下场景:(1) 用 off/l_only/g_only/i_only/full 等 A/B profile 批量运行 mgsc_test;(2) 比较不同 profile 下的 topMispredictsByBranch.csv 和 stats.txt;(3) 使用 bp.db 里的 MGSCTRACE 将每个分支的收益/损失归因到具体 SC 表;(4) 决定如何为 Global 或 IMLI 表设计新的测试。
用于比较 XiangShan RTL 与 gem5 BTBTAGE/TAGE 在 allocation、useful、reset 和 update path 上的语义差异,并结合 CI、原始 stats 和 benchmark 结果定位性能变化来源。适用于用户要求检查“和 RTL 是否对齐”、分析 TAGE 相关性能变化、设计最小 A/B 验证时。
用于在本地通过 `gh` 远程触发 OpenXiangShan/GEM5 的 `manual-perf.yml`,并在触发后检查 run 是否正常创建。适用于用户明确要求触发 `manual-perf`、组装 `gh workflow run` 命令、校验 workflow 输入项、或确认触发后的 Actions run 状态。
用于从 GitHub Actions 的 gem5 性能 CI 中定位 summary、score.txt 和归档目录,并结合本地 gem5_data_proc 对 spec06/spec17 结果做 weighted score、benchmark 子项对比和通用 stats 归因。适用于用户给出 run URL/run id、commit、workflow run,或要求分析 CI 跑分变化来源时。