Skip to content

Run on Ramulator 2.1 from SAFARI's main, with the wrapper in TOGSim - #45

Open
YWHyuk wants to merge 1 commit into
mainfrom
ramulator-v2.1
Open

YWHyuk wants to merge 1 commit into
mainfrom
ramulator-v2.1

Conversation

@YWHyuk

@YWHyuk YWHyuk commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

What changes

  • Ramulator2 submodule moves to SAFARI's Ramulator 2.1 (main c6c7a5d). The togsim-v2.1 branch of PSAL-POSTECH/ramulator2 adds four commits on top:
    • an External request without an address vector goes to channel 0;
    • the two HBM refresh hold-backs;
    • ReqBuffer's count.
  • The wrapper moves into TOGSim (include/Ramulator2.h, src/Ramulator2.cc). TOGSim builds the library with RAMULATOR_PYTHON_BINDINGS OFF. The fork no longer carries TOGSim-only build changes, so it builds standalone like upstream.
  • gen_configs.py writes the three shipped configs with the 2.1 DSL.
    • Controllers: HBM12 for TPUv3/v4, HBM34 for TPUv6e.
    • Each TPU keeps its rate, primary timings, 1 KB rows and refresh times as named presets (HBM2_TPU, HBM2_1880Mbps, HBM3_TPUv6e).
    • tREFIpb stays tREFI over the channel's banks.
    • The HBM2 column count now counts the burst (128, rows 1<<14, same capacity).
    • Generators of configs TOGSim does not ship are removed.
  • Peak bandwidth reads channel_width as the whole channel's width. The values are unchanged (481.28 / 614.40 / 1638.40 GB/s).

Results

  • The engine alone changes no number. With yaml that restates the old settings, all 269 cases pass (measured on kernel-order) and all 217 totals are identical.
  • Every delta comes from the upstream config fixes. With the new configs:
    • tpuv6e goldens move by −1 to +6 cycles (HBM34 controller); the gemm example by +39.
    • TPUv3/v4 runs are 7–15% slower, from the HBM2 column fix. For example, configs/tpuv4 goes from 1201 to 1339.
  • Updated to match: goldens, examples/*/expected.txt, and the documents that quote them.
  • Known limitations:
    • TPUv3 nRTW stays at 12, because no tDQSQ is known for 1880 Mbps.
    • The HBM2 channel_density mismatch is unchanged from before.

Test

python3 tests/run.py: ALL PASS (270 cases). Ramulator2 fork pytest: 330 passed, 32 skipped.

extern/ramulator2 moves to SAFARI's Ramulator 2.1 (main c6c7a5d) with four
commits on top: an External request without an address vector goes to
channel 0, the two HBM refresh hold-backs, and ReqBuffer's count. The
Ramulator2 wrapper moves into TOGSim (include/Ramulator2.h,
src/Ramulator2.cc), and TOGSim builds the library without its Python
bindings.

gen_configs.py writes the three shipped configs with the 2.1 DSL: HBM12 for
TPUv3 and TPUv4, HBM34 for TPUv6e. Each TPU keeps its rate, primary timings,
rows of 1 KB and refresh times as named presets; Ramulator resolves the
rest. tREFIpb stays tREFI over the channel's banks, as PerBank refreshes
them one at a time. The HBM2 column count now counts the burst (128, rows
1<<14, same capacity), and the peak bandwidth reads channel_width as the
whole channel's width. The generators of configs TOGSim does not ship are
gone.

The goldens of tests/cycles, held, kernels and spad_capacity, the examples'
expected.txt and the documents that quote them move with the HBM34
controller, all on tpuv6e: the goldens by -1 to +6 cycles, the gemm
example by +39.
@YWHyuk
YWHyuk changed the base branch from kernel-order to main October 17, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant