[GH-ISSUE #2] RTX 5090 D v2 (10de:2b8c) baseline: mma_rate.py's ratio moves with SM clock (0.60–0.80), so its verdict is unstable at stock clocks #1

Open
opened 2026-10-31 06:58:56 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @XHXIAIEIN on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/phiraml/gpu-unlock-blackwell/issues/2

Stock measurements from an RTX 5090 D v2, a second GB202 card next to your RTX 5090 receipt. On this card the FP32-accumulate / FP16-accumulate ratio depends on the SM clock, so mma_rate.py gives different verdicts at stock clocks.

Summary

  • FP32 accumulate is slower than FP16 accumulate in every condition, at 0.60–0.80 of the FP16-accumulate rate in cuBLAS and 0.50–0.83 in a register-resident mma.sync probe.
  • The ratio depends on the SM clock. In the mma.sync probe it is 0.498 at a locked 1500 MHz and 0.834 at stock clocks. FP32 accumulate scales almost in proportion to the clock; FP16 accumulate does not keep pace.
  • mma_rate.py's verdict flips at stock clocks. Four stock runs gave 0.789–0.805 against the halved < 0.80 threshold, so the same card produced both verdicts.
  • The 0.498 does not match the published Blackwell fuse reading of fmla32 = 3, which NVIDIA defines as 1/8 rate. This card's own fmla32 is not read.
  • FP16 accumulate on this card stays below about 285 TFLOP/s in both harnesses, while your RTX 5090 receipt reaches 335 TFLOP/s in cuBLAS.

Requests

  1. Track RTX 5090 D v2 (10de:2b8c) as a GB202 target alongside the RTX 5090 (10de:2b85), and accept its receipt as a second stock baseline.
  2. Make probe/mma_rate.py record the SM clock and power state of each mode, and read the ratio at a locked SM clock. On this card the FP16 → FP32 / FP16 → FP16 ratio ranges from 0.60 to 0.80 depending on the SM clock, and at stock clocks it lands on both sides of the script's 0.80 verdict threshold.

Suggested probe changes

These build on requirements that already exist. gpu-unlock-ada's docs/testing.md asks for the same clock policy and power cap in both states and for clocks, temperature and power to be captured while benchmarking. Phase 5 of docs/port-plan.md measures the gain of an unlock at a fixed power cap.

  • Store the SM clock, board power and NVML clock event reasons for each mode in the receipt, so the captured clocks travel with the ratio they explain.
  • Lock the SM clock (nvidia-smi -lgc <MHz>,<MHz>) when reading the issue-rate ratio, and record the value. On this card the mma.sync ratio is 0.50 at 1500 MHz and 0.83 at stock clocks, so ratios taken at different clocks cannot be compared. This is for reading the ratio only. The gain of an unlock remains the Phase 5 number, measured at a fixed power cap.
  • Replace the single 0.80 threshold. On this card at stock clocks it decides the verdict on run-to-run variation.

Card

Field Value
Product NVIDIA GeForce RTX 5090 D v2
PCI ID 10de:2b8c, subsystem 1458:41c8 (Gigabyte)
GPU part number 2B8C-240-A1
VBIOS 98.02.69.00.55
SMs 170 (same count as the RTX 5090)
Memory 24 GB (RTX 5090: 32 GB)
Power limit 575 W default, 600 W max
Max SM clock 3090 MHz
Driver 630.20, Windows 11 native (not WSL2)
torch 2.11.0+cu128

Evidence

1. mma.sync issue rates

A register-resident probe without memory traffic or cuBLAS kernel selection. The method is under "Method and limits".

SM clock (measured) FP16 → FP16 FP16 → FP32 BF16 → FP32 FP16 → FP32 ratio Board power
stock (2942 MHz) 284.2 ± 2.0 237.2 ± 4.9 237.0 ± 5.0 0.834 223–234 W
locked 2300 (2293 MHz) 278.2 ± 3.0 182.9 ± 3.6 183.0 ± 4.5 0.657 117–126 W
locked 2000 (1976 MHz) 259.1 ± 3.0 149.1 ± 2.3 147.6 ± 2.1 0.576 94–111 W
locked 1500 (1492 MHz) 222.3 ± 2.2 110.8 ± 1.0 110.6 ± 0.8 0.498 76–90 W

TFLOP/s, mean ± standard deviation over 5 runs.

  • FP32 accumulate scales almost in proportion to the SM clock, at 74–81 TFLOP/s per GHz from 1492 to 2942 MHz.
  • FP16 accumulate does not. From 1492 to 2942 MHz (+97%) it rises 28%, from 222 to 284 TFLOP/s, and its rate per GHz falls from 149 to 97. No mode came near the power limit: board power stayed at 76–234 W and the temperature at or below 54 °C. NVML reported no power, thermal or slowdown reason; the only bit set was the undocumented 0x400, which is also set at idle.
  • This bears on the inference in docs/feasibility.md that the RTX 5090's 0.676 "is not an exact 0.5 because the restricted path is partially hidden by overhead at these shapes". This probe has no shapes and no memory traffic, and its ratio still rises from 0.50 to 0.83 with the SM clock. On this card the departure from 0.5 comes from the FP16-accumulate reference not keeping pace with the clock, not from FP32 accumulate getting faster per clock.
  • At 1500 MHz, FP32 accumulate runs at 0.498× FP16 accumulate. This does not match the fuse reading reported for Blackwell in issue 12 of gpu-unlock-ada. There, read_sm_rates.py returns fmla32 = 3 on an RTX 5090 (AndrewCTF, https://github.com/JustAResearcher/gpu-unlock-ada/issues/12#issuecomment-6393026065), which ctrl2080gr.h defines as REDUCED_SPEED_1_8, and FUSE_SS_FMLA32 reads 3 on a GB203 laptop (ElXreno, https://github.com/JustAResearcher/gpu-unlock-ada/issues/12#issuecomment-6393812555). I have no explanation for a 1/8 setting alongside a measured 0.50. I could not read this card's fmla32: read_sm_rates.py uses the Linux RM interface, and this machine runs Windows.

2. mma_rate.py, unmodified

Peaks in TFLOP/s. Each row is one full run of the script.

SM clock FP16 → FP16 FP16 → FP32 BF16 → FP32 FP16 → FP32 ratio Verdict
stock (earlier run) 278.1 223.9 228.1 0.805 no meaningful fuse
stock 267.9 211.3 225.5 0.789 fuse present
stock 267.3 212.3 216.4 0.794 fuse present
stock 266.1 211.0 214.6 0.793 fuse present
locked 2300 MHz 252.8 167.5 171.9 0.663 fuse present
locked 2300 MHz 253.9 172.4 172.2 0.679 fuse present
locked 2300 MHz 256.1 173.9 173.1 0.679 fuse present
locked 2000 MHz 232.0 141.7 142.7 0.611 fuse present
locked 2000 MHz 232.2 144.3 138.7 0.622 fuse present
locked 2000 MHz 236.6 142.8 143.7 0.604 fuse present

The verdict switches at halved < 0.80. At stock clocks this card measured 0.789–0.805, so the same card and driver produced both verdicts within two hours.

3. Sustained cuBLAS runs with telemetry

16384×16384×4096, each run 1 s warm-up and 6 s measured, 5 runs per mode with the mode order rotated. NVML was sampled every 20 ms. Values are means over the 5 runs; ± is the standard deviation.

SM clock Mode TFLOP/s Measured SM clock Board power NVML SW power cap
stock FP16 → FP16 271.2 ± 4.4 2494 MHz 575 W active
stock FP16 → FP32 205.2 ± 5.5 2632 MHz 575 W active
stock BF16 → FP32 223.0 ± 7.7 2841 MHz 575 W active
locked 2300 FP16 → FP16 254.7 ± 1.6 2253 MHz 508 W active
locked 2300 FP16 → FP32 170.2 ± 2.0 2286 MHz 429 W active
locked 2300 BF16 → FP32 172.9 ± 0.9 2295 MHz 329 W not active
locked 2000 FP16 → FP16 235.4 ± 0.7 1966 MHz 443 W active
locked 2000 FP16 → FP32 141.6 ± 3.2 1987 MHz 344 W active
locked 2000 BF16 → FP32 141.9 ± 1.9 1987 MHz 263 W not active

FP16 → FP32 / FP16 → FP16 from these means: 0.757 at stock, 0.668 at 2300 MHz, 0.602 at 2000 MHz.

  • The ratio depends on the SM clock. From the 2000 MHz lock to stock, FP16 → FP16 throughput rises 15% for a 27% clock increase, while FP16 → FP32 rises 45% for a 33% clock increase and BF16 → FP32 rises 57% for a 43% increase. Neither mode scales in proportion to the clock, so dividing by clock does not normalise the ratio, and a ratio from this harness is only comparable at the same SM clock.
  • At stock clocks all three modes are at the 575 W board limit. FP16-input modes draw more power than BF16 at the same clock (429 W vs 329 W at 2300 MHz for near-equal throughput), which is why FP16 → FP32 runs about 200 MHz below BF16 → FP32 at stock.

4. Comparison with your RTX 5090 receipt

FP32-accumulate rates at stock clocks are similar (205–228 vs 222–226 TFLOP/s) and FP16 accumulate is lower (266–278 vs 335 TFLOP/s). The mma.sync probe tops out at 284 TFLOP/s on this card even at 2942 MHz, so the gap is not explained by the SM clock alone.

Method and limits

  • mma.sync probe. Adapted from gpu-unlock-ada's diagnostics/bench/tensor_modes_issue.cu: mma.sync.aligned.m16n8k16, 8 independent accumulator chains per warp, 20,000 iterations per launch, compiled for sm_120 with NVRTC 12.8. I added an FP16-accumulate kernel (f16.f16.f16.f16) as the reference and a BF16 → FP32 kernel. B holds (+1, −1) pairs, so every result is exactly zero and the FP16 accumulators cannot overflow. Each kernel was first checked with all-ones inputs against the exact expected sum. Launches use 680 blocks × 256 threads (4 per SM); 1, 2, 4 and 6 blocks per SM gave rates within 8% of each other. Each run is 5 s, with 5 runs per mode and NVML sampled every 20 ms.
  • cuBLAS and mma.sync measure different things. The mma_rate.py and sustained tables are cuBLAS GEMMs and include memory traffic and cuBLAS kernel selection. The mma.sync table measures the instruction rate alone, but with my kernels and runner rather than the ones in gpu-unlock-ada; both are attached below.
  • Clock locks. Clocks were locked with nvidia-smi -lgc 2300,2300, -lgc 2000,2000 and, for mma.sync, -lgc 1500,1500, and reset with -rgc afterwards. In the cuBLAS runs the FP32-accumulate modes held the lock and FP16 → FP16 ran 1–2% below it (2253 and 1966 MHz) with NVML reporting SW power cap active at 508 W and 443 W, below the 575 W board limit, so those locked ratios are overstated by about that much. In the mma.sync runs every mode held the lock.
  • Environment. Desktop applications held GPU contexts (about 2.2 GB in use); the GPU was otherwise idle. Maximum temperature was 71 °C, with no thermal or hardware slowdown reported.

Revision note

An earlier version of this issue estimated a per-clock ratio of 0.70 by dividing throughput by the average SM clock. The locked-clock runs show that throughput does not scale linearly with clock in either mode, so that estimate is withdrawn and replaced with direct measurements.

Stock receipt from mma_rate.py --json (row 2 of the mma_rate.py table)
{
 "device": {
  "gpu": "NVIDIA GeForce RTX 5090 D v2",
  "sm_count": 170,
  "compute_capability": "12.0",
  "torch": "2.11.0+cu128",
  "cuda": "12.8",
  "platform": "Windows-11-10.0.26340-SP0",
  "driver": "630.20",
  "power_limit_w": 575.0,
  "power_max_w": 600.0,
  "pcie_gen": "4"
 },
 "peaks_tflops": {
  "fp16_acc_fp16": 267.855,
  "fp16_acc_fp32": 211.264,
  "bf16_acc_fp32": 225.467
 },
 "ratio_vs_fp16_acc_fp16": {
  "fp16_acc_fp16": 1.0,
  "fp16_acc_fp32": 0.7887,
  "bf16_acc_fp32": 0.8418
 },
 "grid": [
  {
   "mode": "fp16_acc_fp16",
   "m": 4096,
   "n": 4096,
   "k": 4096,
   "tflops": 236.11
  },
  {
   "mode": "fp16_acc_fp16",
   "m": 8192,
   "n": 8192,
   "k": 4096,
   "tflops": 257.19
  },
  {
   "mode": "fp16_acc_fp16",
   "m": 8192,
   "n": 4096,
   "k": 8192,
   "tflops": 252.15
  },
  {
   "mode": "fp16_acc_fp16",
   "m": 16384,
   "n": 8192,
   "k": 4096,
   "tflops": 259.17
  },
  {
   "mode": "fp16_acc_fp16",
   "m": 16384,
   "n": 16384,
   "k": 2048,
   "tflops": 267.85
  },
  {
   "mode": "fp16_acc_fp32",
   "m": 4096,
   "n": 4096,
   "k": 4096,
   "tflops": 198.62
  },
  {
   "mode": "fp16_acc_fp32",
   "m": 8192,
   "n": 8192,
   "k": 4096,
   "tflops": 211.26
  },
  {
   "mode": "fp16_acc_fp32",
   "m": 8192,
   "n": 4096,
   "k": 8192,
   "tflops": 207.58
  },
  {
   "mode": "fp16_acc_fp32",
   "m": 16384,
   "n": 8192,
   "k": 4096,
   "tflops": 202.73
  },
  {
   "mode": "fp16_acc_fp32",
   "m": 16384,
   "n": 16384,
   "k": 2048,
   "tflops": 210.0
  },
  {
   "mode": "bf16_acc_fp32",
   "m": 4096,
   "n": 4096,
   "k": 4096,
   "tflops": 165.51
  },
  {
   "mode": "bf16_acc_fp32",
   "m": 8192,
   "n": 8192,
   "k": 4096,
   "tflops": 207.6
  },
  {
   "mode": "bf16_acc_fp32",
   "m": 8192,
   "n": 4096,
   "k": 8192,
   "tflops": 209.66
  },
  {
   "mode": "bf16_acc_fp32",
   "m": 16384,
   "n": 8192,
   "k": 4096,
   "tflops": 225.47
  },
  {
   "mode": "bf16_acc_fp32",
   "m": 16384,
   "n": 16384,
   "k": 2048,
   "tflops": 216.91
  }
 ],
 "note": "Issue-rate measurement. Large-K GEMM keeps store traffic small; best-of-3 of the swept shapes. Not an application speedup."
}
All sustained runs (JSONL)
{"phase": "unlocked", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 277.38, "clk_mean": 2495.7, "clk_min": 2490, "clk_max": 2512, "power_mean": 575.1, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 64, "samples": 247}
{"phase": "unlocked", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 210.39, "clk_mean": 2620.5, "clk_min": 2602, "clk_max": 2632, "power_mean": 575.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 65, "samples": 249}
{"phase": "unlocked", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 231.98, "clk_mean": 2833.9, "clk_min": 2827, "clk_max": 2842, "power_mean": 575.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 250}
{"phase": "unlocked", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 211.42, "clk_mean": 2608.7, "clk_min": 2587, "clk_max": 2625, "power_mean": 575.1, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 66, "samples": 247}
{"phase": "unlocked", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 229.63, "clk_mean": 2836.0, "clk_min": 2827, "clk_max": 2842, "power_mean": 574.9, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 247}
{"phase": "unlocked", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 271.12, "clk_mean": 2496.6, "clk_min": 2460, "clk_max": 2520, "power_mean": 575.1, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 246}
{"phase": "unlocked", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 222.23, "clk_mean": 2840.9, "clk_min": 2820, "clk_max": 2850, "power_mean": 575.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 70, "samples": 248}
{"phase": "unlocked", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 271.12, "clk_mean": 2489.5, "clk_min": 2452, "clk_max": 2505, "power_mean": 574.8, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 70, "samples": 246}
{"phase": "unlocked", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 203.65, "clk_mean": 2633.5, "clk_min": 2617, "clk_max": 2662, "power_mean": 575.2, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 248}
{"phase": "unlocked", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 271.39, "clk_mean": 2478.3, "clk_min": 2445, "clk_max": 2497, "power_mean": 575.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 70, "samples": 249}
{"phase": "unlocked", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 201.87, "clk_mean": 2641.3, "clk_min": 2617, "clk_max": 2670, "power_mean": 574.8, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 250}
{"phase": "unlocked", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 215.76, "clk_mean": 2847.6, "clk_min": 2812, "clk_max": 2865, "power_mean": 575.3, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 71, "samples": 246}
{"phase": "unlocked", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 198.7, "clk_mean": 2654.4, "clk_min": 2632, "clk_max": 2662, "power_mean": 575.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 250}
{"phase": "unlocked", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 215.45, "clk_mean": 2844.7, "clk_min": 2812, "clk_max": 2865, "power_mean": 575.2, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 71, "samples": 247}
{"phase": "unlocked", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 264.8, "clk_mean": 2511.4, "clk_min": 2460, "clk_max": 2535, "power_mean": 575.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 71, "samples": 249}
{"phase": "2300", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 256.76, "clk_mean": 2257.0, "clk_min": 2257, "clk_max": 2257, "power_mean": 513.8, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 250}
{"phase": "2300", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 172.82, "clk_mean": 2287.0, "clk_min": 2287, "clk_max": 2287, "power_mean": 433.3, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 250}
{"phase": "2300", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 173.71, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 328.6, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 64, "samples": 249}
{"phase": "2300", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 171.54, "clk_mean": 2286.7, "clk_min": 2280, "clk_max": 2287, "power_mean": 431.9, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 66, "samples": 247}
{"phase": "2300", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 173.52, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 329.7, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 64, "samples": 250}
{"phase": "2300", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 256.12, "clk_mean": 2257.0, "clk_min": 2257, "clk_max": 2257, "power_mean": 510.6, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 246}
{"phase": "2300", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 173.38, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 330.0, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 64, "samples": 250}
{"phase": "2300", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 253.69, "clk_mean": 2251.7, "clk_min": 2235, "clk_max": 2265, "power_mean": 505.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 249}
{"phase": "2300", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 168.41, "clk_mean": 2283.3, "clk_min": 2280, "clk_max": 2287, "power_mean": 426.8, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 66, "samples": 246}
{"phase": "2300", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 253.29, "clk_mean": 2248.4, "clk_min": 2242, "clk_max": 2257, "power_mean": 504.9, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 68, "samples": 249}
{"phase": "2300", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 167.99, "clk_mean": 2283.6, "clk_min": 2280, "clk_max": 2287, "power_mean": 425.8, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 66, "samples": 247}
{"phase": "2300", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 171.78, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 327.5, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 64, "samples": 246}
{"phase": "2300", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 170.35, "clk_mean": 2287.0, "clk_min": 2287, "clk_max": 2287, "power_mean": 429.6, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 66, "samples": 249}
{"phase": "2300", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 172.28, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 328.8, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 64, "samples": 251}
{"phase": "2300", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 253.48, "clk_mean": 2252.3, "clk_min": 2242, "clk_max": 2257, "power_mean": 506.5, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 250}
{"phase": "2000", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 236.62, "clk_mean": 1967.3, "clk_min": 1965, "clk_max": 1972, "power_mean": 444.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 247}
{"phase": "2000", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 142.76, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 345.6, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 63, "samples": 246}
{"phase": "2000", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 143.16, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 263.6, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 61, "samples": 252}
{"phase": "2000", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 141.33, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 343.2, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 63, "samples": 249}
{"phase": "2000", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 142.77, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 264.6, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 61, "samples": 246}
{"phase": "2000", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 235.36, "clk_mean": 1965.1, "clk_min": 1957, "clk_max": 1972, "power_mean": 441.8, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 249}
{"phase": "2000", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 142.22, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 264.5, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 61, "samples": 247}
{"phase": "2000", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 235.43, "clk_mean": 1966.0, "clk_min": 1965, "clk_max": 1972, "power_mean": 443.9, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 249}
{"phase": "2000", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 145.95, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 351.5, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 63, "samples": 247}
{"phase": "2000", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 234.68, "clk_mean": 1965.7, "clk_min": 1965, "clk_max": 1972, "power_mean": 442.9, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 250}
{"phase": "2000", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 140.9, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 342.3, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 63, "samples": 250}
{"phase": "2000", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 142.76, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 263.6, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 61, "samples": 246}
{"phase": "2000", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 137.03, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 335.1, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 63, "samples": 250}
{"phase": "2000", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 138.61, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 258.2, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 61, "samples": 247}
{"phase": "2000", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 234.93, "clk_mean": 1967.7, "clk_min": 1965, "clk_max": 1972, "power_mean": 442.6, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 250}
All mma.sync runs (JSONL)
{"phase": "unlocked", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 283.55, "clk_mean": 2940.2, "clk_min": 2940, "clk_max": 2947, "power_mean": 216.9, "power_cap_frac": 0.0, "temp_max": 51, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 241.86, "clk_mean": 2940.0, "clk_min": 2940, "clk_max": 2940, "power_mean": 223.7, "power_cap_frac": 0.0, "temp_max": 51, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 241.23, "clk_mean": 2940.0, "clk_min": 2940, "clk_max": 2940, "power_mean": 232.1, "power_cap_frac": 0.0, "temp_max": 52, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 241.97, "clk_mean": 2940.0, "clk_min": 2940, "clk_max": 2940, "power_mean": 225.0, "power_cap_frac": 0.0, "temp_max": 52, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 241.73, "clk_mean": 2940.0, "clk_min": 2940, "clk_max": 2940, "power_mean": 234.3, "power_cap_frac": 0.0, "temp_max": 52, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 284.68, "clk_mean": 2941.3, "clk_min": 2940, "clk_max": 2947, "power_mean": 222.8, "power_cap_frac": 0.0, "temp_max": 52, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 230.85, "clk_mean": 2940.4, "clk_min": 2940, "clk_max": 2947, "power_mean": 235.0, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 281.14, "clk_mean": 2946.3, "clk_min": 2940, "clk_max": 2947, "power_mean": 226.5, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 230.37, "clk_mean": 2942.5, "clk_min": 2940, "clk_max": 2947, "power_mean": 227.3, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 285.83, "clk_mean": 2946.1, "clk_min": 2940, "clk_max": 2947, "power_mean": 223.6, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 236.73, "clk_mean": 2942.7, "clk_min": 2940, "clk_max": 2947, "power_mean": 227.6, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 238.6, "clk_mean": 2940.4, "clk_min": 2940, "clk_max": 2947, "power_mean": 234.1, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 234.83, "clk_mean": 2938.1, "clk_min": 2932, "clk_max": 2947, "power_mean": 226.2, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 232.56, "clk_mean": 2944.0, "clk_min": 2932, "clk_max": 2947, "power_mean": 235.1, "power_cap_frac": 0.0, "temp_max": 54, "blocks": 680, "iters": 20000}
{"phase": "unlocked", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 285.82, "clk_mean": 2933.7, "clk_min": 2932, "clk_max": 2947, "power_mean": 223.0, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 278.4, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 126.4, "power_cap_frac": 0.0, "temp_max": 50, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 182.04, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 117.5, "power_cap_frac": 0.0, "temp_max": 49, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 180.85, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 120.0, "power_cap_frac": 0.0, "temp_max": 48, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 180.63, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 117.9, "power_cap_frac": 0.0, "temp_max": 48, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 182.87, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 122.9, "power_cap_frac": 0.0, "temp_max": 48, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 276.75, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 126.6, "power_cap_frac": 0.0, "temp_max": 48, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 179.63, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 119.7, "power_cap_frac": 0.0, "temp_max": 47, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 281.58, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 125.4, "power_cap_frac": 0.0, "temp_max": 47, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 183.33, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 117.5, "power_cap_frac": 0.0, "temp_max": 46, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 280.34, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 127.1, "power_cap_frac": 0.0, "temp_max": 47, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 179.65, "clk_mean": 2294.5, "clk_min": 2287, "clk_max": 2295, "power_mean": 117.4, "power_cap_frac": 0.0, "temp_max": 46, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 181.05, "clk_mean": 2294.5, "clk_min": 2287, "clk_max": 2295, "power_mean": 120.3, "power_cap_frac": 0.0, "temp_max": 46, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 188.78, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 117.1, "power_cap_frac": 0.0, "temp_max": 46, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 190.75, "clk_mean": 2288.0, "clk_min": 2287, "clk_max": 2295, "power_mean": 121.7, "power_cap_frac": 0.0, "temp_max": 46, "blocks": 680, "iters": 20000}
{"phase": "2300", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 274.04, "clk_mean": 2287.0, "clk_min": 2287, "clk_max": 2287, "power_mean": 125.8, "power_cap_frac": 0.0, "temp_max": 46, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 256.49, "clk_mean": 1973.0, "clk_min": 1972, "clk_max": 1980, "power_mean": 110.2, "power_cap_frac": 0.0, "temp_max": 45, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 146.27, "clk_mean": 1975.9, "clk_min": 1972, "clk_max": 1980, "power_mean": 93.9, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 147.85, "clk_mean": 1972.0, "clk_min": 1972, "clk_max": 1972, "power_mean": 96.5, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 147.27, "clk_mean": 1974.5, "clk_min": 1972, "clk_max": 1980, "power_mean": 94.3, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 145.74, "clk_mean": 1972.0, "clk_min": 1972, "clk_max": 1972, "power_mean": 97.8, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 258.42, "clk_mean": 1972.0, "clk_min": 1972, "clk_max": 1972, "power_mean": 110.7, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 145.69, "clk_mean": 1972.0, "clk_min": 1972, "clk_max": 1972, "power_mean": 96.3, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 258.21, "clk_mean": 1977.6, "clk_min": 1972, "clk_max": 1980, "power_mean": 108.8, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 149.69, "clk_mean": 1972.5, "clk_min": 1972, "clk_max": 1980, "power_mean": 94.1, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 258.19, "clk_mean": 1980.0, "clk_min": 1980, "clk_max": 1980, "power_mean": 110.7, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 151.07, "clk_mean": 1976.2, "clk_min": 1972, "clk_max": 1980, "power_mean": 94.4, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 147.73, "clk_mean": 1977.5, "clk_min": 1972, "clk_max": 1980, "power_mean": 96.0, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 151.4, "clk_mean": 1978.0, "clk_min": 1972, "clk_max": 1980, "power_mean": 94.9, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 150.91, "clk_mean": 1978.5, "clk_min": 1972, "clk_max": 1980, "power_mean": 98.3, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000}
{"phase": "2000", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 264.35, "clk_mean": 1978.2, "clk_min": 1972, "clk_max": 1980, "power_mean": 112.8, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 224.77, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 89.5, "power_cap_frac": 0.0, "temp_max": 42, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 112.32, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 74.7, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 111.47, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 77.3, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 111.22, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 75.2, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 111.3, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 78.7, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 223.44, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 89.2, "power_cap_frac": 0.0, "temp_max": 42, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 110.76, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 78.0, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 223.15, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 89.0, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 110.14, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 76.0, "power_cap_frac": 0.0, "temp_max": 40, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 221.0, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 90.4, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 109.81, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 76.0, "power_cap_frac": 0.0, "temp_max": 40, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 109.72, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 77.8, "power_cap_frac": 0.0, "temp_max": 40, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 110.4, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 75.9, "power_cap_frac": 0.0, "temp_max": 40, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 109.85, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 78.2, "power_cap_frac": 0.0, "temp_max": 40, "blocks": 680, "iters": 20000}
{"phase": "1500", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 219.29, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 90.3, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000}
mma.sync probe kernels (mma_probe.cu)
// Register-resident mma.sync issue-rate probe, adapted from
// gpu-unlock-ada diagnostics/bench/tensor_modes_issue.cu for NVRTC and sm_120.
// Adds an FP16-accumulate kernel as the reference and a BF16 -> FP32 kernel.
// A is all ones; B is the word passed in. Timing runs pass (+1, -1) pairs so
// every product sums to zero along k and FP16 accumulators cannot overflow.
// Validation runs pass all ones and a short iteration count.

#define CHAINS 8

extern "C" __global__ void bench_f16_f32(unsigned long long iters, unsigned b, float *sink) {
    const unsigned a = 0x3c003c00u;
    float c0[CHAINS], c1[CHAINS], c2[CHAINS], c3[CHAINS];
#pragma unroll
    for (int j = 0; j < CHAINS; ++j) c0[j] = c1[j] = c2[j] = c3[j] = 0.0f;
    for (unsigned long long i = 0; i < iters; ++i) {
#pragma unroll
        for (int j = 0; j < CHAINS; ++j)
            asm volatile("mma.sync.aligned.m16n8k16.row.col.f32.f16.f16.f32 "
                         "{%0,%1,%2,%3}, {%4,%5,%6,%7}, {%8,%9}, {%0,%1,%2,%3};"
                         : "+f"(c0[j]), "+f"(c1[j]), "+f"(c2[j]), "+f"(c3[j])
                         : "r"(a), "r"(a), "r"(a), "r"(a), "r"(b), "r"(b));
    }
    float sum = 0.0f;
#pragma unroll
    for (int j = 0; j < CHAINS; ++j) sum += c0[j] + c1[j] + c2[j] + c3[j];
    sink[blockIdx.x * blockDim.x + threadIdx.x] = sum;
}

extern "C" __global__ void bench_bf16_f32(unsigned long long iters, unsigned b, float *sink) {
    const unsigned a = 0x3f803f80u;
    float c0[CHAINS], c1[CHAINS], c2[CHAINS], c3[CHAINS];
#pragma unroll
    for (int j = 0; j < CHAINS; ++j) c0[j] = c1[j] = c2[j] = c3[j] = 0.0f;
    for (unsigned long long i = 0; i < iters; ++i) {
#pragma unroll
        for (int j = 0; j < CHAINS; ++j)
            asm volatile("mma.sync.aligned.m16n8k16.row.col.f32.bf16.bf16.f32 "
                         "{%0,%1,%2,%3}, {%4,%5,%6,%7}, {%8,%9}, {%0,%1,%2,%3};"
                         : "+f"(c0[j]), "+f"(c1[j]), "+f"(c2[j]), "+f"(c3[j])
                         : "r"(a), "r"(a), "r"(a), "r"(a), "r"(b), "r"(b));
    }
    float sum = 0.0f;
#pragma unroll
    for (int j = 0; j < CHAINS; ++j) sum += c0[j] + c1[j] + c2[j] + c3[j];
    sink[blockIdx.x * blockDim.x + threadIdx.x] = sum;
}

__device__ __forceinline__ float half2_sum(unsigned v) {
    float lo, hi;
    asm("{.reg .f16 l, h; mov.b32 {l, h}, %2; cvt.f32.f16 %0, l; cvt.f32.f16 %1, h;}"
        : "=f"(lo), "=f"(hi) : "r"(v));
    return lo + hi;
}

extern "C" __global__ void bench_f16_f16(unsigned long long iters, unsigned b, float *sink) {
    const unsigned a = 0x3c003c00u;
    unsigned d0[CHAINS], d1[CHAINS];
#pragma unroll
    for (int j = 0; j < CHAINS; ++j) d0[j] = d1[j] = 0u;
    for (unsigned long long i = 0; i < iters; ++i) {
#pragma unroll
        for (int j = 0; j < CHAINS; ++j)
            asm volatile("mma.sync.aligned.m16n8k16.row.col.f16.f16.f16.f16 "
                         "{%0,%1}, {%2,%3,%4,%5}, {%6,%7}, {%0,%1};"
                         : "+r"(d0[j]), "+r"(d1[j])
                         : "r"(a), "r"(a), "r"(a), "r"(a), "r"(b), "r"(b));
    }
    float sum = 0.0f;
#pragma unroll
    for (int j = 0; j < CHAINS; ++j) sum += half2_sum(d0[j]) + half2_sum(d1[j]);
    sink[blockIdx.x * blockDim.x + threadIdx.x] = sum;
}
mma.sync runner (mma_run.py, Windows, NVRTC from the torch wheel)
"""Compile mma_probe.cu with NVRTC and time each mode through the CUDA Driver API.

Usage:
    python mma_run.py sweep                       # validate kernels, sweep blocks per SM
    python mma_run.py <phase> <out.jsonl> [reps]  # sustained runs with NVML telemetry
"""
import ctypes as C
import json
import os
import sys
import threading
import time
from pathlib import Path

import pynvml as nv

TORCH_LIB = Path(sys.prefix) / "Lib" / "site-packages" / "torch" / "lib"
os.add_dll_directory(str(TORCH_LIB))
C.CDLL(str(TORCH_LIB / "nvrtc-builtins64_128.dll"))
nvrtc = C.CDLL(str(TORCH_LIB / "nvrtc64_120_0.dll"))
cuda = C.WinDLL("nvcuda.dll")

THREADS = 256
CHAINS = 8
K = 16
MODES = (("fp16_acc_fp16", "bench_f16_f16", 0xBC003C00),
         ("fp16_acc_fp32", "bench_f16_f32", 0xBC003C00),
         ("bf16_acc_fp32", "bench_bf16_f32", 0xBF803F80))
ALL_ONES = {"bench_f16_f16": 0x3C003C00, "bench_f16_f32": 0x3C003C00, "bench_bf16_f32": 0x3F803F80}


def check(code, step):
    if code:
        msg = C.c_char_p()
        cuda.cuGetErrorString(code, C.byref(msg))
        raise RuntimeError(f"{step}: CUDA {code} {msg.value!r}")


def compile_cubin(src):
    prog = C.c_void_p()
    assert nvrtc.nvrtcCreateProgram(C.byref(prog), src.encode(), b"mma_probe.cu", 0, None, None) == 0
    opts = (C.c_char_p * 2)(b"--gpu-architecture=sm_120", b"-Xptxas=-O3")
    res = nvrtc.nvrtcCompileProgram(prog, 2, opts)
    size = C.c_size_t()
    nvrtc.nvrtcGetProgramLogSize(prog, C.byref(size))
    log = C.create_string_buffer(size.value)
    nvrtc.nvrtcGetProgramLog(prog, log)
    if res:
        raise RuntimeError(log.value.decode())
    nvrtc.nvrtcGetCUBINSize(prog, C.byref(size))
    cubin = C.create_string_buffer(size.value)
    assert nvrtc.nvrtcGetCUBIN(prog, cubin) == 0
    return cubin


check(cuda.cuInit(0), "cuInit")
dev = C.c_int()
check(cuda.cuDeviceGet(C.byref(dev), 0), "cuDeviceGet")
SMS = C.c_int()
check(cuda.cuDeviceGetAttribute(C.byref(SMS), 16, dev), "SM count")  # MULTIPROCESSOR_COUNT
ctx = C.c_void_p()
check(cuda.cuDevicePrimaryCtxRetain(C.byref(ctx), dev), "ctx")
check(cuda.cuCtxSetCurrent(ctx), "ctx current")
cubin = compile_cubin(Path(__file__).with_name("mma_probe.cu").read_text())
module = C.c_void_p()
check(cuda.cuModuleLoadData(C.byref(module), cubin), "cuModuleLoadData")
fns = {}
for _, name, _ in MODES:
    fn = C.c_void_p()
    check(cuda.cuModuleGetFunction(C.byref(fn), module, name.encode()), name)
    fns[name] = fn
MAX_BLOCKS = SMS.value * 8
sink = C.c_uint64()
check(cuda.cuMemAlloc_v2(C.byref(sink), MAX_BLOCKS * THREADS * 4), "alloc")


def launch(name, blocks, iters, b):
    it, bw = C.c_ulonglong(iters), C.c_uint(b)
    params = (C.c_void_p * 3)(C.cast(C.byref(it), C.c_void_p), C.cast(C.byref(bw), C.c_void_p),
                              C.cast(C.byref(sink), C.c_void_p))
    check(cuda.cuLaunchKernel(fns[name], blocks, 1, 1, THREADS, 1, 1, 0, None, params, None), name)


def read_sink(blocks):
    host = (C.c_float * (blocks * THREADS))()
    check(cuda.cuCtxSynchronize(), "sync")
    check(cuda.cuMemcpyDtoH_v2(C.cast(host, C.c_void_p), sink, blocks * THREADS * 4), "DtoH")
    return host


def validate(blocks):
    for _, name, b in MODES:
        for word, iters, want in ((ALL_ONES[name], 100, 4 * CHAINS * K * 100), (b, 100, 0.0)):
            launch(name, blocks, iters, word)
            host = read_sink(blocks)
            bad = sum(1 for v in host if v != want)
            assert bad == 0, (name, hex(word), bad, host[0], want)


def timed(name, blocks, iters, b, seconds):
    """Launch back to back for `seconds`; return (Top/s, elapsed)."""
    ev0, ev1 = C.c_void_p(), C.c_void_p()
    check(cuda.cuEventCreate(C.byref(ev0), 0), "ev")
    check(cuda.cuEventCreate(C.byref(ev1), 0), "ev")
    check(cuda.cuEventRecord(ev0, None), "rec")
    n, t = 0, time.perf_counter()
    while time.perf_counter() - t < seconds:
        for _ in range(4):
            launch(name, blocks, iters, b)
        check(cuda.cuCtxSynchronize(), "sync")
        n += 4
    check(cuda.cuEventRecord(ev1, None), "rec")
    check(cuda.cuEventSynchronize(ev1), "evsync")
    ms = C.c_float()
    check(cuda.cuEventElapsedTime(C.byref(ms), ev0, ev1), "elapsed")
    cuda.cuEventDestroy_v2(ev0)
    cuda.cuEventDestroy_v2(ev1)
    ops = n * blocks * (THREADS // 32) * iters * CHAINS * (16 * 8 * K * 2)
    return ops / (ms.value * 1e9), ms.value / 1e3


nv.nvmlInit()
h = nv.nvmlDeviceGetHandleByIndex(0)


def sample(stop, out):
    while not stop.is_set():
        out.append((nv.nvmlDeviceGetClockInfo(h, nv.NVML_CLOCK_SM), nv.nvmlDeviceGetPowerUsage(h) / 1000,
                    nv.nvmlDeviceGetCurrentClocksEventReasons(h), nv.nvmlDeviceGetTemperature(h, 0)))
        time.sleep(0.02)


ITERS = 20000
if sys.argv[1] == "sweep":
    print("SMs", SMS.value)
    validate(SMS.value * 4)
    print("validation ok")
    for per_sm in (1, 2, 4, 6):
        row = [f"{per_sm} blk/SM"]
        for label, name, b in MODES:
            timed(name, SMS.value * per_sm, ITERS, b, 0.3)
            rate, _ = timed(name, SMS.value * per_sm, ITERS, b, 1.0)
            row.append(f"{label} {rate:7.1f}")
        print("  ".join(row), flush=True)
    sys.exit()

label_phase, out_path = sys.argv[1], sys.argv[2]
reps = int(sys.argv[3]) if len(sys.argv) > 3 else 5
BLOCKS = SMS.value * int(os.environ.get("BLOCKS_PER_SM", "4"))
validate(BLOCKS)
POWER_CAP = nv.nvmlClocksEventReasonSwPowerCap
with open(out_path, "a", encoding="utf-8") as f:
    for rep in range(reps):
        for i in range(len(MODES)):
            label, name, b = MODES[(i + rep) % len(MODES)]
            timed(name, BLOCKS, ITERS, b, 1.0)
            samples, stop = [], threading.Event()
            th = threading.Thread(target=sample, args=(stop, samples))
            th.start()
            rate, el = timed(name, BLOCKS, ITERS, b, 5.0)
            stop.set()
            th.join()
            s = samples[len(samples) // 5:]
            clk = [x[0] for x in s]
            row = {"phase": label_phase, "rep": rep, "mode": label, "tflops": round(rate, 2),
                   "clk_mean": round(sum(clk) / len(clk), 1), "clk_min": min(clk), "clk_max": max(clk),
                   "power_mean": round(sum(x[1] for x in s) / len(s), 1),
                   "power_cap_frac": round(sum(1 for x in s if x[2] & POWER_CAP) / len(s), 3),
                   "temp_max": max(x[3] for x in s), "blocks": BLOCKS, "iters": ITERS}
            f.write(json.dumps(row) + "\n")
            f.flush()
            print(row, flush=True)
            time.sleep(3)
Originally created by @XHXIAIEIN on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/phiraml/gpu-unlock-blackwell/issues/2 Stock measurements from an RTX 5090 D v2, a second GB202 card next to your RTX 5090 receipt. On this card the FP32-accumulate / FP16-accumulate ratio depends on the SM clock, so `mma_rate.py` gives different verdicts at stock clocks. ## Summary - **FP32 accumulate is slower than FP16 accumulate in every condition**, at 0.60–0.80 of the FP16-accumulate rate in cuBLAS and 0.50–0.83 in a register-resident `mma.sync` probe. - **The ratio depends on the SM clock.** In the `mma.sync` probe it is 0.498 at a locked 1500 MHz and 0.834 at stock clocks. FP32 accumulate scales almost in proportion to the clock; FP16 accumulate does not keep pace. - **`mma_rate.py`'s verdict flips at stock clocks.** Four stock runs gave 0.789–0.805 against the `halved < 0.80` threshold, so the same card produced both verdicts. - **The 0.498 does not match the published Blackwell fuse reading** of `fmla32 = 3`, which NVIDIA defines as 1/8 rate. This card's own `fmla32` is not read. - **FP16 accumulate on this card stays below about 285 TFLOP/s** in both harnesses, while your RTX 5090 receipt reaches 335 TFLOP/s in cuBLAS. ## Requests 1. Track RTX 5090 D v2 (`10de:2b8c`) as a GB202 target alongside the RTX 5090 (`10de:2b85`), and accept its receipt as a second stock baseline. 2. Make `probe/mma_rate.py` record the SM clock and power state of each mode, and read the ratio at a locked SM clock. On this card the FP16 → FP32 / FP16 → FP16 ratio ranges from 0.60 to 0.80 depending on the SM clock, and at stock clocks it lands on both sides of the script's 0.80 verdict threshold. ### Suggested probe changes These build on requirements that already exist. gpu-unlock-ada's `docs/testing.md` asks for the same clock policy and power cap in both states and for clocks, temperature and power to be captured while benchmarking. Phase 5 of `docs/port-plan.md` measures the gain of an unlock at a fixed power cap. - Store the SM clock, board power and NVML clock event reasons for each mode in the receipt, so the captured clocks travel with the ratio they explain. - Lock the SM clock (`nvidia-smi -lgc <MHz>,<MHz>`) when reading the issue-rate ratio, and record the value. On this card the mma.sync ratio is 0.50 at 1500 MHz and 0.83 at stock clocks, so ratios taken at different clocks cannot be compared. This is for reading the ratio only. The gain of an unlock remains the Phase 5 number, measured at a fixed power cap. - Replace the single 0.80 threshold. On this card at stock clocks it decides the verdict on run-to-run variation. ## Card | Field | Value | |---|---| | Product | NVIDIA GeForce RTX 5090 D v2 | | PCI ID | `10de:2b8c`, subsystem `1458:41c8` (Gigabyte) | | GPU part number | `2B8C-240-A1` | | VBIOS | `98.02.69.00.55` | | SMs | 170 (same count as the RTX 5090) | | Memory | 24 GB (RTX 5090: 32 GB) | | Power limit | 575 W default, 600 W max | | Max SM clock | 3090 MHz | | Driver | 630.20, Windows 11 native (not WSL2) | | torch | 2.11.0+cu128 | ## Evidence ### 1. mma.sync issue rates A register-resident probe without memory traffic or cuBLAS kernel selection. The method is under "Method and limits". | SM clock (measured) | FP16 → FP16 | FP16 → FP32 | BF16 → FP32 | FP16 → FP32 ratio | Board power | |---|---:|---:|---:|---:|---:| | stock (2942 MHz) | 284.2 ± 2.0 | 237.2 ± 4.9 | 237.0 ± 5.0 | 0.834 | 223–234 W | | locked 2300 (2293 MHz) | 278.2 ± 3.0 | 182.9 ± 3.6 | 183.0 ± 4.5 | 0.657 | 117–126 W | | locked 2000 (1976 MHz) | 259.1 ± 3.0 | 149.1 ± 2.3 | 147.6 ± 2.1 | 0.576 | 94–111 W | | locked 1500 (1492 MHz) | 222.3 ± 2.2 | 110.8 ± 1.0 | 110.6 ± 0.8 | 0.498 | 76–90 W | TFLOP/s, mean ± standard deviation over 5 runs. - **FP32 accumulate scales almost in proportion to the SM clock**, at 74–81 TFLOP/s per GHz from 1492 to 2942 MHz. - **FP16 accumulate does not.** From 1492 to 2942 MHz (+97%) it rises 28%, from 222 to 284 TFLOP/s, and its rate per GHz falls from 149 to 97. No mode came near the power limit: board power stayed at 76–234 W and the temperature at or below 54 °C. NVML reported no power, thermal or slowdown reason; the only bit set was the undocumented `0x400`, which is also set at idle. - **This bears on the inference in `docs/feasibility.md`** that the RTX 5090's 0.676 "is not an exact 0.5 because the restricted path is partially hidden by overhead at these shapes". This probe has no shapes and no memory traffic, and its ratio still rises from 0.50 to 0.83 with the SM clock. On this card the departure from 0.5 comes from the FP16-accumulate reference not keeping pace with the clock, not from FP32 accumulate getting faster per clock. - **At 1500 MHz, FP32 accumulate runs at 0.498× FP16 accumulate.** This does not match the fuse reading reported for Blackwell in issue 12 of gpu-unlock-ada. There, `read_sm_rates.py` returns `fmla32 = 3` on an RTX 5090 (AndrewCTF, `https://github.com/JustAResearcher/gpu-unlock-ada/issues/12#issuecomment-6393026065`), which `ctrl2080gr.h` defines as `REDUCED_SPEED_1_8`, and `FUSE_SS_FMLA32` reads 3 on a GB203 laptop (ElXreno, `https://github.com/JustAResearcher/gpu-unlock-ada/issues/12#issuecomment-6393812555`). I have no explanation for a 1/8 setting alongside a measured 0.50. I could not read this card's `fmla32`: `read_sm_rates.py` uses the Linux RM interface, and this machine runs Windows. ### 2. mma_rate.py, unmodified Peaks in TFLOP/s. Each row is one full run of the script. | SM clock | FP16 → FP16 | FP16 → FP32 | BF16 → FP32 | FP16 → FP32 ratio | Verdict | |---|---:|---:|---:|---:|---| | stock (earlier run) | 278.1 | 223.9 | 228.1 | 0.805 | no meaningful fuse | | stock | 267.9 | 211.3 | 225.5 | 0.789 | fuse present | | stock | 267.3 | 212.3 | 216.4 | 0.794 | fuse present | | stock | 266.1 | 211.0 | 214.6 | 0.793 | fuse present | | locked 2300 MHz | 252.8 | 167.5 | 171.9 | 0.663 | fuse present | | locked 2300 MHz | 253.9 | 172.4 | 172.2 | 0.679 | fuse present | | locked 2300 MHz | 256.1 | 173.9 | 173.1 | 0.679 | fuse present | | locked 2000 MHz | 232.0 | 141.7 | 142.7 | 0.611 | fuse present | | locked 2000 MHz | 232.2 | 144.3 | 138.7 | 0.622 | fuse present | | locked 2000 MHz | 236.6 | 142.8 | 143.7 | 0.604 | fuse present | The verdict switches at `halved < 0.80`. At stock clocks this card measured 0.789–0.805, so the same card and driver produced both verdicts within two hours. ### 3. Sustained cuBLAS runs with telemetry 16384×16384×4096, each run 1 s warm-up and 6 s measured, 5 runs per mode with the mode order rotated. NVML was sampled every 20 ms. Values are means over the 5 runs; ± is the standard deviation. | SM clock | Mode | TFLOP/s | Measured SM clock | Board power | NVML SW power cap | |---|---|---:|---:|---:|---| | stock | FP16 → FP16 | 271.2 ± 4.4 | 2494 MHz | 575 W | active | | stock | FP16 → FP32 | 205.2 ± 5.5 | 2632 MHz | 575 W | active | | stock | BF16 → FP32 | 223.0 ± 7.7 | 2841 MHz | 575 W | active | | locked 2300 | FP16 → FP16 | 254.7 ± 1.6 | 2253 MHz | 508 W | active | | locked 2300 | FP16 → FP32 | 170.2 ± 2.0 | 2286 MHz | 429 W | active | | locked 2300 | BF16 → FP32 | 172.9 ± 0.9 | 2295 MHz | 329 W | not active | | locked 2000 | FP16 → FP16 | 235.4 ± 0.7 | 1966 MHz | 443 W | active | | locked 2000 | FP16 → FP32 | 141.6 ± 3.2 | 1987 MHz | 344 W | active | | locked 2000 | BF16 → FP32 | 141.9 ± 1.9 | 1987 MHz | 263 W | not active | FP16 → FP32 / FP16 → FP16 from these means: 0.757 at stock, 0.668 at 2300 MHz, 0.602 at 2000 MHz. - **The ratio depends on the SM clock.** From the 2000 MHz lock to stock, FP16 → FP16 throughput rises 15% for a 27% clock increase, while FP16 → FP32 rises 45% for a 33% clock increase and BF16 → FP32 rises 57% for a 43% increase. Neither mode scales in proportion to the clock, so dividing by clock does not normalise the ratio, and a ratio from this harness is only comparable at the same SM clock. - **At stock clocks all three modes are at the 575 W board limit.** FP16-input modes draw more power than BF16 at the same clock (429 W vs 329 W at 2300 MHz for near-equal throughput), which is why FP16 → FP32 runs about 200 MHz below BF16 → FP32 at stock. ### 4. Comparison with your RTX 5090 receipt FP32-accumulate rates at stock clocks are similar (205–228 vs 222–226 TFLOP/s) and FP16 accumulate is lower (266–278 vs 335 TFLOP/s). The mma.sync probe tops out at 284 TFLOP/s on this card even at 2942 MHz, so the gap is not explained by the SM clock alone. ## Method and limits - **mma.sync probe.** Adapted from gpu-unlock-ada's `diagnostics/bench/tensor_modes_issue.cu`: `mma.sync.aligned.m16n8k16`, 8 independent accumulator chains per warp, 20,000 iterations per launch, compiled for sm_120 with NVRTC 12.8. I added an FP16-accumulate kernel (`f16.f16.f16.f16`) as the reference and a BF16 → FP32 kernel. B holds (+1, −1) pairs, so every result is exactly zero and the FP16 accumulators cannot overflow. Each kernel was first checked with all-ones inputs against the exact expected sum. Launches use 680 blocks × 256 threads (4 per SM); 1, 2, 4 and 6 blocks per SM gave rates within 8% of each other. Each run is 5 s, with 5 runs per mode and NVML sampled every 20 ms. - **cuBLAS and mma.sync measure different things.** The `mma_rate.py` and sustained tables are cuBLAS GEMMs and include memory traffic and cuBLAS kernel selection. The mma.sync table measures the instruction rate alone, but with my kernels and runner rather than the ones in gpu-unlock-ada; both are attached below. - **Clock locks.** Clocks were locked with `nvidia-smi -lgc 2300,2300`, `-lgc 2000,2000` and, for mma.sync, `-lgc 1500,1500`, and reset with `-rgc` afterwards. In the cuBLAS runs the FP32-accumulate modes held the lock and FP16 → FP16 ran 1–2% below it (2253 and 1966 MHz) with NVML reporting SW power cap active at 508 W and 443 W, below the 575 W board limit, so those locked ratios are overstated by about that much. In the mma.sync runs every mode held the lock. - **Environment.** Desktop applications held GPU contexts (about 2.2 GB in use); the GPU was otherwise idle. Maximum temperature was 71 °C, with no thermal or hardware slowdown reported. ## Revision note An earlier version of this issue estimated a per-clock ratio of 0.70 by dividing throughput by the average SM clock. The locked-clock runs show that throughput does not scale linearly with clock in either mode, so that estimate is withdrawn and replaced with direct measurements. <details> <summary>Stock receipt from mma_rate.py --json (row 2 of the mma_rate.py table)</summary> ```json { "device": { "gpu": "NVIDIA GeForce RTX 5090 D v2", "sm_count": 170, "compute_capability": "12.0", "torch": "2.11.0+cu128", "cuda": "12.8", "platform": "Windows-11-10.0.26340-SP0", "driver": "630.20", "power_limit_w": 575.0, "power_max_w": 600.0, "pcie_gen": "4" }, "peaks_tflops": { "fp16_acc_fp16": 267.855, "fp16_acc_fp32": 211.264, "bf16_acc_fp32": 225.467 }, "ratio_vs_fp16_acc_fp16": { "fp16_acc_fp16": 1.0, "fp16_acc_fp32": 0.7887, "bf16_acc_fp32": 0.8418 }, "grid": [ { "mode": "fp16_acc_fp16", "m": 4096, "n": 4096, "k": 4096, "tflops": 236.11 }, { "mode": "fp16_acc_fp16", "m": 8192, "n": 8192, "k": 4096, "tflops": 257.19 }, { "mode": "fp16_acc_fp16", "m": 8192, "n": 4096, "k": 8192, "tflops": 252.15 }, { "mode": "fp16_acc_fp16", "m": 16384, "n": 8192, "k": 4096, "tflops": 259.17 }, { "mode": "fp16_acc_fp16", "m": 16384, "n": 16384, "k": 2048, "tflops": 267.85 }, { "mode": "fp16_acc_fp32", "m": 4096, "n": 4096, "k": 4096, "tflops": 198.62 }, { "mode": "fp16_acc_fp32", "m": 8192, "n": 8192, "k": 4096, "tflops": 211.26 }, { "mode": "fp16_acc_fp32", "m": 8192, "n": 4096, "k": 8192, "tflops": 207.58 }, { "mode": "fp16_acc_fp32", "m": 16384, "n": 8192, "k": 4096, "tflops": 202.73 }, { "mode": "fp16_acc_fp32", "m": 16384, "n": 16384, "k": 2048, "tflops": 210.0 }, { "mode": "bf16_acc_fp32", "m": 4096, "n": 4096, "k": 4096, "tflops": 165.51 }, { "mode": "bf16_acc_fp32", "m": 8192, "n": 8192, "k": 4096, "tflops": 207.6 }, { "mode": "bf16_acc_fp32", "m": 8192, "n": 4096, "k": 8192, "tflops": 209.66 }, { "mode": "bf16_acc_fp32", "m": 16384, "n": 8192, "k": 4096, "tflops": 225.47 }, { "mode": "bf16_acc_fp32", "m": 16384, "n": 16384, "k": 2048, "tflops": 216.91 } ], "note": "Issue-rate measurement. Large-K GEMM keeps store traffic small; best-of-3 of the swept shapes. Not an application speedup." } ``` </details> <details> <summary>All sustained runs (JSONL)</summary> ``` {"phase": "unlocked", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 277.38, "clk_mean": 2495.7, "clk_min": 2490, "clk_max": 2512, "power_mean": 575.1, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 64, "samples": 247} {"phase": "unlocked", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 210.39, "clk_mean": 2620.5, "clk_min": 2602, "clk_max": 2632, "power_mean": 575.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 65, "samples": 249} {"phase": "unlocked", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 231.98, "clk_mean": 2833.9, "clk_min": 2827, "clk_max": 2842, "power_mean": 575.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 250} {"phase": "unlocked", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 211.42, "clk_mean": 2608.7, "clk_min": 2587, "clk_max": 2625, "power_mean": 575.1, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 66, "samples": 247} {"phase": "unlocked", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 229.63, "clk_mean": 2836.0, "clk_min": 2827, "clk_max": 2842, "power_mean": 574.9, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 247} {"phase": "unlocked", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 271.12, "clk_mean": 2496.6, "clk_min": 2460, "clk_max": 2520, "power_mean": 575.1, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 246} {"phase": "unlocked", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 222.23, "clk_mean": 2840.9, "clk_min": 2820, "clk_max": 2850, "power_mean": 575.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 70, "samples": 248} {"phase": "unlocked", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 271.12, "clk_mean": 2489.5, "clk_min": 2452, "clk_max": 2505, "power_mean": 574.8, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 70, "samples": 246} {"phase": "unlocked", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 203.65, "clk_mean": 2633.5, "clk_min": 2617, "clk_max": 2662, "power_mean": 575.2, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 248} {"phase": "unlocked", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 271.39, "clk_mean": 2478.3, "clk_min": 2445, "clk_max": 2497, "power_mean": 575.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 70, "samples": 249} {"phase": "unlocked", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 201.87, "clk_mean": 2641.3, "clk_min": 2617, "clk_max": 2670, "power_mean": 574.8, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 250} {"phase": "unlocked", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 215.76, "clk_mean": 2847.6, "clk_min": 2812, "clk_max": 2865, "power_mean": 575.3, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 71, "samples": 246} {"phase": "unlocked", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 198.7, "clk_mean": 2654.4, "clk_min": 2632, "clk_max": 2662, "power_mean": 575.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 250} {"phase": "unlocked", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 215.45, "clk_mean": 2844.7, "clk_min": 2812, "clk_max": 2865, "power_mean": 575.2, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 71, "samples": 247} {"phase": "unlocked", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 264.8, "clk_mean": 2511.4, "clk_min": 2460, "clk_max": 2535, "power_mean": 575.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 71, "samples": 249} {"phase": "2300", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 256.76, "clk_mean": 2257.0, "clk_min": 2257, "clk_max": 2257, "power_mean": 513.8, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 250} {"phase": "2300", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 172.82, "clk_mean": 2287.0, "clk_min": 2287, "clk_max": 2287, "power_mean": 433.3, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 250} {"phase": "2300", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 173.71, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 328.6, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 64, "samples": 249} {"phase": "2300", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 171.54, "clk_mean": 2286.7, "clk_min": 2280, "clk_max": 2287, "power_mean": 431.9, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 66, "samples": 247} {"phase": "2300", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 173.52, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 329.7, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 64, "samples": 250} {"phase": "2300", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 256.12, "clk_mean": 2257.0, "clk_min": 2257, "clk_max": 2257, "power_mean": 510.6, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 246} {"phase": "2300", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 173.38, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 330.0, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 64, "samples": 250} {"phase": "2300", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 253.69, "clk_mean": 2251.7, "clk_min": 2235, "clk_max": 2265, "power_mean": 505.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 249} {"phase": "2300", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 168.41, "clk_mean": 2283.3, "clk_min": 2280, "clk_max": 2287, "power_mean": 426.8, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 66, "samples": 246} {"phase": "2300", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 253.29, "clk_mean": 2248.4, "clk_min": 2242, "clk_max": 2257, "power_mean": 504.9, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 68, "samples": 249} {"phase": "2300", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 167.99, "clk_mean": 2283.6, "clk_min": 2280, "clk_max": 2287, "power_mean": 425.8, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 66, "samples": 247} {"phase": "2300", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 171.78, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 327.5, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 64, "samples": 246} {"phase": "2300", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 170.35, "clk_mean": 2287.0, "clk_min": 2287, "clk_max": 2287, "power_mean": 429.6, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 66, "samples": 249} {"phase": "2300", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 172.28, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 328.8, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 64, "samples": 251} {"phase": "2300", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 253.48, "clk_mean": 2252.3, "clk_min": 2242, "clk_max": 2257, "power_mean": 506.5, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 69, "samples": 250} {"phase": "2000", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 236.62, "clk_mean": 1967.3, "clk_min": 1965, "clk_max": 1972, "power_mean": 444.0, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 247} {"phase": "2000", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 142.76, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 345.6, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 63, "samples": 246} {"phase": "2000", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 143.16, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 263.6, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 61, "samples": 252} {"phase": "2000", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 141.33, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 343.2, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 63, "samples": 249} {"phase": "2000", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 142.77, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 264.6, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 61, "samples": 246} {"phase": "2000", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 235.36, "clk_mean": 1965.1, "clk_min": 1957, "clk_max": 1972, "power_mean": 441.8, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 249} {"phase": "2000", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 142.22, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 264.5, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 61, "samples": 247} {"phase": "2000", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 235.43, "clk_mean": 1966.0, "clk_min": 1965, "clk_max": 1972, "power_mean": 443.9, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 249} {"phase": "2000", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 145.95, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 351.5, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 63, "samples": 247} {"phase": "2000", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 234.68, "clk_mean": 1965.7, "clk_min": 1965, "clk_max": 1972, "power_mean": 442.9, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 250} {"phase": "2000", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 140.9, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 342.3, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 63, "samples": 250} {"phase": "2000", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 142.76, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 263.6, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 61, "samples": 246} {"phase": "2000", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 137.03, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 335.1, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 63, "samples": 250} {"phase": "2000", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 138.61, "clk_mean": 1987.0, "clk_min": 1987, "clk_max": 1987, "power_mean": 258.2, "power_cap_frac": 0.0, "thermal_frac": 0.0, "temp_max": 61, "samples": 247} {"phase": "2000", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 234.93, "clk_mean": 1967.7, "clk_min": 1965, "clk_max": 1972, "power_mean": 442.6, "power_cap_frac": 1.0, "thermal_frac": 0.0, "temp_max": 67, "samples": 250} ``` </details> <details> <summary>All mma.sync runs (JSONL)</summary> ``` {"phase": "unlocked", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 283.55, "clk_mean": 2940.2, "clk_min": 2940, "clk_max": 2947, "power_mean": 216.9, "power_cap_frac": 0.0, "temp_max": 51, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 241.86, "clk_mean": 2940.0, "clk_min": 2940, "clk_max": 2940, "power_mean": 223.7, "power_cap_frac": 0.0, "temp_max": 51, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 241.23, "clk_mean": 2940.0, "clk_min": 2940, "clk_max": 2940, "power_mean": 232.1, "power_cap_frac": 0.0, "temp_max": 52, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 241.97, "clk_mean": 2940.0, "clk_min": 2940, "clk_max": 2940, "power_mean": 225.0, "power_cap_frac": 0.0, "temp_max": 52, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 241.73, "clk_mean": 2940.0, "clk_min": 2940, "clk_max": 2940, "power_mean": 234.3, "power_cap_frac": 0.0, "temp_max": 52, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 284.68, "clk_mean": 2941.3, "clk_min": 2940, "clk_max": 2947, "power_mean": 222.8, "power_cap_frac": 0.0, "temp_max": 52, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 230.85, "clk_mean": 2940.4, "clk_min": 2940, "clk_max": 2947, "power_mean": 235.0, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 281.14, "clk_mean": 2946.3, "clk_min": 2940, "clk_max": 2947, "power_mean": 226.5, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 230.37, "clk_mean": 2942.5, "clk_min": 2940, "clk_max": 2947, "power_mean": 227.3, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 285.83, "clk_mean": 2946.1, "clk_min": 2940, "clk_max": 2947, "power_mean": 223.6, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 236.73, "clk_mean": 2942.7, "clk_min": 2940, "clk_max": 2947, "power_mean": 227.6, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 238.6, "clk_mean": 2940.4, "clk_min": 2940, "clk_max": 2947, "power_mean": 234.1, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 234.83, "clk_mean": 2938.1, "clk_min": 2932, "clk_max": 2947, "power_mean": 226.2, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 232.56, "clk_mean": 2944.0, "clk_min": 2932, "clk_max": 2947, "power_mean": 235.1, "power_cap_frac": 0.0, "temp_max": 54, "blocks": 680, "iters": 20000} {"phase": "unlocked", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 285.82, "clk_mean": 2933.7, "clk_min": 2932, "clk_max": 2947, "power_mean": 223.0, "power_cap_frac": 0.0, "temp_max": 53, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 278.4, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 126.4, "power_cap_frac": 0.0, "temp_max": 50, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 182.04, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 117.5, "power_cap_frac": 0.0, "temp_max": 49, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 180.85, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 120.0, "power_cap_frac": 0.0, "temp_max": 48, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 180.63, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 117.9, "power_cap_frac": 0.0, "temp_max": 48, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 182.87, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 122.9, "power_cap_frac": 0.0, "temp_max": 48, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 276.75, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 126.6, "power_cap_frac": 0.0, "temp_max": 48, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 179.63, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 119.7, "power_cap_frac": 0.0, "temp_max": 47, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 281.58, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 125.4, "power_cap_frac": 0.0, "temp_max": 47, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 183.33, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 117.5, "power_cap_frac": 0.0, "temp_max": 46, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 280.34, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 127.1, "power_cap_frac": 0.0, "temp_max": 47, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 179.65, "clk_mean": 2294.5, "clk_min": 2287, "clk_max": 2295, "power_mean": 117.4, "power_cap_frac": 0.0, "temp_max": 46, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 181.05, "clk_mean": 2294.5, "clk_min": 2287, "clk_max": 2295, "power_mean": 120.3, "power_cap_frac": 0.0, "temp_max": 46, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 188.78, "clk_mean": 2295.0, "clk_min": 2295, "clk_max": 2295, "power_mean": 117.1, "power_cap_frac": 0.0, "temp_max": 46, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 190.75, "clk_mean": 2288.0, "clk_min": 2287, "clk_max": 2295, "power_mean": 121.7, "power_cap_frac": 0.0, "temp_max": 46, "blocks": 680, "iters": 20000} {"phase": "2300", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 274.04, "clk_mean": 2287.0, "clk_min": 2287, "clk_max": 2287, "power_mean": 125.8, "power_cap_frac": 0.0, "temp_max": 46, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 256.49, "clk_mean": 1973.0, "clk_min": 1972, "clk_max": 1980, "power_mean": 110.2, "power_cap_frac": 0.0, "temp_max": 45, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 146.27, "clk_mean": 1975.9, "clk_min": 1972, "clk_max": 1980, "power_mean": 93.9, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 147.85, "clk_mean": 1972.0, "clk_min": 1972, "clk_max": 1972, "power_mean": 96.5, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 147.27, "clk_mean": 1974.5, "clk_min": 1972, "clk_max": 1980, "power_mean": 94.3, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 145.74, "clk_mean": 1972.0, "clk_min": 1972, "clk_max": 1972, "power_mean": 97.8, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 258.42, "clk_mean": 1972.0, "clk_min": 1972, "clk_max": 1972, "power_mean": 110.7, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 145.69, "clk_mean": 1972.0, "clk_min": 1972, "clk_max": 1972, "power_mean": 96.3, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 258.21, "clk_mean": 1977.6, "clk_min": 1972, "clk_max": 1980, "power_mean": 108.8, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 149.69, "clk_mean": 1972.5, "clk_min": 1972, "clk_max": 1980, "power_mean": 94.1, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 258.19, "clk_mean": 1980.0, "clk_min": 1980, "clk_max": 1980, "power_mean": 110.7, "power_cap_frac": 0.0, "temp_max": 44, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 151.07, "clk_mean": 1976.2, "clk_min": 1972, "clk_max": 1980, "power_mean": 94.4, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 147.73, "clk_mean": 1977.5, "clk_min": 1972, "clk_max": 1980, "power_mean": 96.0, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 151.4, "clk_mean": 1978.0, "clk_min": 1972, "clk_max": 1980, "power_mean": 94.9, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 150.91, "clk_mean": 1978.5, "clk_min": 1972, "clk_max": 1980, "power_mean": 98.3, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000} {"phase": "2000", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 264.35, "clk_mean": 1978.2, "clk_min": 1972, "clk_max": 1980, "power_mean": 112.8, "power_cap_frac": 0.0, "temp_max": 43, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 0, "mode": "fp16_acc_fp16", "tflops": 224.77, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 89.5, "power_cap_frac": 0.0, "temp_max": 42, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 0, "mode": "fp16_acc_fp32", "tflops": 112.32, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 74.7, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 0, "mode": "bf16_acc_fp32", "tflops": 111.47, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 77.3, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 1, "mode": "fp16_acc_fp32", "tflops": 111.22, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 75.2, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 1, "mode": "bf16_acc_fp32", "tflops": 111.3, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 78.7, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 1, "mode": "fp16_acc_fp16", "tflops": 223.44, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 89.2, "power_cap_frac": 0.0, "temp_max": 42, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 2, "mode": "bf16_acc_fp32", "tflops": 110.76, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 78.0, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 2, "mode": "fp16_acc_fp16", "tflops": 223.15, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 89.0, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 2, "mode": "fp16_acc_fp32", "tflops": 110.14, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 76.0, "power_cap_frac": 0.0, "temp_max": 40, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 3, "mode": "fp16_acc_fp16", "tflops": 221.0, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 90.4, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 3, "mode": "fp16_acc_fp32", "tflops": 109.81, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 76.0, "power_cap_frac": 0.0, "temp_max": 40, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 3, "mode": "bf16_acc_fp32", "tflops": 109.72, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 77.8, "power_cap_frac": 0.0, "temp_max": 40, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 4, "mode": "fp16_acc_fp32", "tflops": 110.4, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 75.9, "power_cap_frac": 0.0, "temp_max": 40, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 4, "mode": "bf16_acc_fp32", "tflops": 109.85, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 78.2, "power_cap_frac": 0.0, "temp_max": 40, "blocks": 680, "iters": 20000} {"phase": "1500", "rep": 4, "mode": "fp16_acc_fp16", "tflops": 219.29, "clk_mean": 1492.0, "clk_min": 1492, "clk_max": 1492, "power_mean": 90.3, "power_cap_frac": 0.0, "temp_max": 41, "blocks": 680, "iters": 20000} ``` </details> <details> <summary>mma.sync probe kernels (mma_probe.cu)</summary> ```cuda // Register-resident mma.sync issue-rate probe, adapted from // gpu-unlock-ada diagnostics/bench/tensor_modes_issue.cu for NVRTC and sm_120. // Adds an FP16-accumulate kernel as the reference and a BF16 -> FP32 kernel. // A is all ones; B is the word passed in. Timing runs pass (+1, -1) pairs so // every product sums to zero along k and FP16 accumulators cannot overflow. // Validation runs pass all ones and a short iteration count. #define CHAINS 8 extern "C" __global__ void bench_f16_f32(unsigned long long iters, unsigned b, float *sink) { const unsigned a = 0x3c003c00u; float c0[CHAINS], c1[CHAINS], c2[CHAINS], c3[CHAINS]; #pragma unroll for (int j = 0; j < CHAINS; ++j) c0[j] = c1[j] = c2[j] = c3[j] = 0.0f; for (unsigned long long i = 0; i < iters; ++i) { #pragma unroll for (int j = 0; j < CHAINS; ++j) asm volatile("mma.sync.aligned.m16n8k16.row.col.f32.f16.f16.f32 " "{%0,%1,%2,%3}, {%4,%5,%6,%7}, {%8,%9}, {%0,%1,%2,%3};" : "+f"(c0[j]), "+f"(c1[j]), "+f"(c2[j]), "+f"(c3[j]) : "r"(a), "r"(a), "r"(a), "r"(a), "r"(b), "r"(b)); } float sum = 0.0f; #pragma unroll for (int j = 0; j < CHAINS; ++j) sum += c0[j] + c1[j] + c2[j] + c3[j]; sink[blockIdx.x * blockDim.x + threadIdx.x] = sum; } extern "C" __global__ void bench_bf16_f32(unsigned long long iters, unsigned b, float *sink) { const unsigned a = 0x3f803f80u; float c0[CHAINS], c1[CHAINS], c2[CHAINS], c3[CHAINS]; #pragma unroll for (int j = 0; j < CHAINS; ++j) c0[j] = c1[j] = c2[j] = c3[j] = 0.0f; for (unsigned long long i = 0; i < iters; ++i) { #pragma unroll for (int j = 0; j < CHAINS; ++j) asm volatile("mma.sync.aligned.m16n8k16.row.col.f32.bf16.bf16.f32 " "{%0,%1,%2,%3}, {%4,%5,%6,%7}, {%8,%9}, {%0,%1,%2,%3};" : "+f"(c0[j]), "+f"(c1[j]), "+f"(c2[j]), "+f"(c3[j]) : "r"(a), "r"(a), "r"(a), "r"(a), "r"(b), "r"(b)); } float sum = 0.0f; #pragma unroll for (int j = 0; j < CHAINS; ++j) sum += c0[j] + c1[j] + c2[j] + c3[j]; sink[blockIdx.x * blockDim.x + threadIdx.x] = sum; } __device__ __forceinline__ float half2_sum(unsigned v) { float lo, hi; asm("{.reg .f16 l, h; mov.b32 {l, h}, %2; cvt.f32.f16 %0, l; cvt.f32.f16 %1, h;}" : "=f"(lo), "=f"(hi) : "r"(v)); return lo + hi; } extern "C" __global__ void bench_f16_f16(unsigned long long iters, unsigned b, float *sink) { const unsigned a = 0x3c003c00u; unsigned d0[CHAINS], d1[CHAINS]; #pragma unroll for (int j = 0; j < CHAINS; ++j) d0[j] = d1[j] = 0u; for (unsigned long long i = 0; i < iters; ++i) { #pragma unroll for (int j = 0; j < CHAINS; ++j) asm volatile("mma.sync.aligned.m16n8k16.row.col.f16.f16.f16.f16 " "{%0,%1}, {%2,%3,%4,%5}, {%6,%7}, {%0,%1};" : "+r"(d0[j]), "+r"(d1[j]) : "r"(a), "r"(a), "r"(a), "r"(a), "r"(b), "r"(b)); } float sum = 0.0f; #pragma unroll for (int j = 0; j < CHAINS; ++j) sum += half2_sum(d0[j]) + half2_sum(d1[j]); sink[blockIdx.x * blockDim.x + threadIdx.x] = sum; } ``` </details> <details> <summary>mma.sync runner (mma_run.py, Windows, NVRTC from the torch wheel)</summary> ```python """Compile mma_probe.cu with NVRTC and time each mode through the CUDA Driver API. Usage: python mma_run.py sweep # validate kernels, sweep blocks per SM python mma_run.py <phase> <out.jsonl> [reps] # sustained runs with NVML telemetry """ import ctypes as C import json import os import sys import threading import time from pathlib import Path import pynvml as nv TORCH_LIB = Path(sys.prefix) / "Lib" / "site-packages" / "torch" / "lib" os.add_dll_directory(str(TORCH_LIB)) C.CDLL(str(TORCH_LIB / "nvrtc-builtins64_128.dll")) nvrtc = C.CDLL(str(TORCH_LIB / "nvrtc64_120_0.dll")) cuda = C.WinDLL("nvcuda.dll") THREADS = 256 CHAINS = 8 K = 16 MODES = (("fp16_acc_fp16", "bench_f16_f16", 0xBC003C00), ("fp16_acc_fp32", "bench_f16_f32", 0xBC003C00), ("bf16_acc_fp32", "bench_bf16_f32", 0xBF803F80)) ALL_ONES = {"bench_f16_f16": 0x3C003C00, "bench_f16_f32": 0x3C003C00, "bench_bf16_f32": 0x3F803F80} def check(code, step): if code: msg = C.c_char_p() cuda.cuGetErrorString(code, C.byref(msg)) raise RuntimeError(f"{step}: CUDA {code} {msg.value!r}") def compile_cubin(src): prog = C.c_void_p() assert nvrtc.nvrtcCreateProgram(C.byref(prog), src.encode(), b"mma_probe.cu", 0, None, None) == 0 opts = (C.c_char_p * 2)(b"--gpu-architecture=sm_120", b"-Xptxas=-O3") res = nvrtc.nvrtcCompileProgram(prog, 2, opts) size = C.c_size_t() nvrtc.nvrtcGetProgramLogSize(prog, C.byref(size)) log = C.create_string_buffer(size.value) nvrtc.nvrtcGetProgramLog(prog, log) if res: raise RuntimeError(log.value.decode()) nvrtc.nvrtcGetCUBINSize(prog, C.byref(size)) cubin = C.create_string_buffer(size.value) assert nvrtc.nvrtcGetCUBIN(prog, cubin) == 0 return cubin check(cuda.cuInit(0), "cuInit") dev = C.c_int() check(cuda.cuDeviceGet(C.byref(dev), 0), "cuDeviceGet") SMS = C.c_int() check(cuda.cuDeviceGetAttribute(C.byref(SMS), 16, dev), "SM count") # MULTIPROCESSOR_COUNT ctx = C.c_void_p() check(cuda.cuDevicePrimaryCtxRetain(C.byref(ctx), dev), "ctx") check(cuda.cuCtxSetCurrent(ctx), "ctx current") cubin = compile_cubin(Path(__file__).with_name("mma_probe.cu").read_text()) module = C.c_void_p() check(cuda.cuModuleLoadData(C.byref(module), cubin), "cuModuleLoadData") fns = {} for _, name, _ in MODES: fn = C.c_void_p() check(cuda.cuModuleGetFunction(C.byref(fn), module, name.encode()), name) fns[name] = fn MAX_BLOCKS = SMS.value * 8 sink = C.c_uint64() check(cuda.cuMemAlloc_v2(C.byref(sink), MAX_BLOCKS * THREADS * 4), "alloc") def launch(name, blocks, iters, b): it, bw = C.c_ulonglong(iters), C.c_uint(b) params = (C.c_void_p * 3)(C.cast(C.byref(it), C.c_void_p), C.cast(C.byref(bw), C.c_void_p), C.cast(C.byref(sink), C.c_void_p)) check(cuda.cuLaunchKernel(fns[name], blocks, 1, 1, THREADS, 1, 1, 0, None, params, None), name) def read_sink(blocks): host = (C.c_float * (blocks * THREADS))() check(cuda.cuCtxSynchronize(), "sync") check(cuda.cuMemcpyDtoH_v2(C.cast(host, C.c_void_p), sink, blocks * THREADS * 4), "DtoH") return host def validate(blocks): for _, name, b in MODES: for word, iters, want in ((ALL_ONES[name], 100, 4 * CHAINS * K * 100), (b, 100, 0.0)): launch(name, blocks, iters, word) host = read_sink(blocks) bad = sum(1 for v in host if v != want) assert bad == 0, (name, hex(word), bad, host[0], want) def timed(name, blocks, iters, b, seconds): """Launch back to back for `seconds`; return (Top/s, elapsed).""" ev0, ev1 = C.c_void_p(), C.c_void_p() check(cuda.cuEventCreate(C.byref(ev0), 0), "ev") check(cuda.cuEventCreate(C.byref(ev1), 0), "ev") check(cuda.cuEventRecord(ev0, None), "rec") n, t = 0, time.perf_counter() while time.perf_counter() - t < seconds: for _ in range(4): launch(name, blocks, iters, b) check(cuda.cuCtxSynchronize(), "sync") n += 4 check(cuda.cuEventRecord(ev1, None), "rec") check(cuda.cuEventSynchronize(ev1), "evsync") ms = C.c_float() check(cuda.cuEventElapsedTime(C.byref(ms), ev0, ev1), "elapsed") cuda.cuEventDestroy_v2(ev0) cuda.cuEventDestroy_v2(ev1) ops = n * blocks * (THREADS // 32) * iters * CHAINS * (16 * 8 * K * 2) return ops / (ms.value * 1e9), ms.value / 1e3 nv.nvmlInit() h = nv.nvmlDeviceGetHandleByIndex(0) def sample(stop, out): while not stop.is_set(): out.append((nv.nvmlDeviceGetClockInfo(h, nv.NVML_CLOCK_SM), nv.nvmlDeviceGetPowerUsage(h) / 1000, nv.nvmlDeviceGetCurrentClocksEventReasons(h), nv.nvmlDeviceGetTemperature(h, 0))) time.sleep(0.02) ITERS = 20000 if sys.argv[1] == "sweep": print("SMs", SMS.value) validate(SMS.value * 4) print("validation ok") for per_sm in (1, 2, 4, 6): row = [f"{per_sm} blk/SM"] for label, name, b in MODES: timed(name, SMS.value * per_sm, ITERS, b, 0.3) rate, _ = timed(name, SMS.value * per_sm, ITERS, b, 1.0) row.append(f"{label} {rate:7.1f}") print(" ".join(row), flush=True) sys.exit() label_phase, out_path = sys.argv[1], sys.argv[2] reps = int(sys.argv[3]) if len(sys.argv) > 3 else 5 BLOCKS = SMS.value * int(os.environ.get("BLOCKS_PER_SM", "4")) validate(BLOCKS) POWER_CAP = nv.nvmlClocksEventReasonSwPowerCap with open(out_path, "a", encoding="utf-8") as f: for rep in range(reps): for i in range(len(MODES)): label, name, b = MODES[(i + rep) % len(MODES)] timed(name, BLOCKS, ITERS, b, 1.0) samples, stop = [], threading.Event() th = threading.Thread(target=sample, args=(stop, samples)) th.start() rate, el = timed(name, BLOCKS, ITERS, b, 5.0) stop.set() th.join() s = samples[len(samples) // 5:] clk = [x[0] for x in s] row = {"phase": label_phase, "rep": rep, "mode": label, "tflops": round(rate, 2), "clk_mean": round(sum(clk) / len(clk), 1), "clk_min": min(clk), "clk_max": max(clk), "power_mean": round(sum(x[1] for x in s) / len(s), 1), "power_cap_frac": round(sum(1 for x in s if x[2] & POWER_CAP) / len(s), 3), "temp_max": max(x[3] for x in s), "blocks": BLOCKS, "iters": ITERS} f.write(json.dumps(row) + "\n") f.flush() print(row, flush=True) time.sleep(3) ``` </details>
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
phiraml/gpu-unlock-blackwell#1
No description provided.