[GH-ISSUE #90] RTX 4090 D: unlock doubles TF32 GEMM but BF16/FP32-accumulate GEMM stays flat at 8192³ — expected, or a separate limiter? #53

Open
opened 2026-10-31 06:55:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @MAXEUR5 on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/90

First, thank you for this project — the locally-generated-firmware path, the documented register values (SS0 0x88888888, SS1 0x8), and especially the "These are register-resident issue rates, not application GEMM or inference speedups" caveat made it straightforward to apply and to read the results honestly.

I'd like to contribute a clean data point on the RTX 4090 D (10de:2685, the rtx4090d_experimental row / PR #7) and ask whether the BF16 behavior I see is expected or points at a limiter the speed-select override doesn't reach.

Setup

  • 2× RTX 4090 D in one host; driver 595.84 (open kernel module), Linux 6.8.0-138, CUDA 12.0.
  • Module + locally-generated firmware applied warm, no reboot (rmmod nvidia* → per-card FLR → insmod … targets=<addr> rtx4090d_experimental=1 → reload driver).
  • Unlock verified on both cards: SS0 0x88888888, SS1 0x8 — matches your documented values, so the override is definitely in effect.

Measured (cuBLAS, 8192³, sm_89, median TF/s)

Path Locked Unlocked Δ
TF32 → FP32 accumulate 76 142 +87% (≈1.87×)
BF16 → FP32 accumulate ~148 ~148 ~0%

In the same harness, TF32 realizes almost the full ~2× you document at the issue-rate level, while BF16→FP32-accumulate shows no application gain at 8192³.

For context, the unlocked-state mode sweep (I didn't capture locked pairs for these two): FP16/FP32-accumulate ~186, FP16/FP16-accumulate ~250, BF16/FP32-accumulate ~148. So FP16 and BF16 diverge in GEMM even though both use FP32 accumulation — which echoes your "FP16 gained 12–34%, BF16 … essentially unchanged at 4096³" note.

Not a library artifact

I suspected the distro cuBLAS 12.0, so I re-ran the identical binary against the cuBLAS 12.9 wheel (nvidia-cublas-cu12, what PyTorch ships) via LD_LIBRARY_PATH — the BF16 numbers were identical. So it isn't a 12.0-vs-12.9 thing.

Questions

Your README already notes that the 4090's register BF16→FP32-accumulate rate roughly doubles (165.5 → 330.6 TF/s) while real cuBLAS BF16 "was essentially unchanged at 4096³," and that the MoE case is "consistent with quantized matmuls not consuming the FP32-accumulate tensor path." My 4090 D result looks like the same effect, one shape larger and on the "D":

  1. Do you have a working understanding of why the doubled BF16→FP32-accumulate issue rate doesn't carry into large-square GEMM, while TF32 (also ~2× at issue level) does?
  2. Is there a second limiter on the FP16/BF16 FP32-accumulate GEMM path that SS0 speed-select doesn't govern — e.g. an accumulator-port / clock / power-cap interaction that full square GEMM hits but the register-resident probe doesn't — as opposed to TF32, which realizes the gain end-to-end? The FP16-vs-BF16 divergence above makes me suspect the limiter is specific to BF16 rather than to FP32-accumulate in general.
  3. Is the 4090 D expected to match the plain 4090 here, or could the experimental 2685 path leave something extra in place?

Not reporting a bug — the unlock applied cleanly and TF32 is a genuine ~2× win on these cards. I'm just trying to understand the BF16 side, and your notes suggest you've already looked right at this. Thanks again for sharing the work.

Originally created by @MAXEUR5 on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/90 First, thank you for this project — the locally-generated-firmware path, the documented register values (SS0 `0x88888888`, SS1 `0x8`), and especially the **"These are register-resident issue rates, not application GEMM or inference speedups"** caveat made it straightforward to apply and to read the results honestly. I'd like to contribute a clean data point on the **RTX 4090 D** (`10de:2685`, the `rtx4090d_experimental` row / PR #7) and ask whether the BF16 behavior I see is expected or points at a limiter the speed-select override doesn't reach. ### Setup - 2× RTX 4090 D in one host; driver 595.84 (open kernel module), Linux 6.8.0-138, CUDA 12.0. - Module + locally-generated firmware applied **warm**, no reboot (`rmmod nvidia*` → per-card FLR → `insmod … targets=<addr> rtx4090d_experimental=1` → reload driver). - Unlock verified on both cards: SS0 `0x88888888`, SS1 `0x8` — matches your documented values, so the override is definitely in effect. ### Measured (cuBLAS, 8192³, sm_89, median TF/s) | Path | Locked | Unlocked | Δ | |---|---:|---:|---:| | TF32 → FP32 accumulate | 76 | 142 | **+87% (≈1.87×)** | | BF16 → FP32 accumulate | ~148 | ~148 | **~0%** | In the **same harness**, TF32 realizes almost the full ~2× you document at the issue-rate level, while BF16→FP32-accumulate shows no application gain at 8192³. For context, the unlocked-state mode sweep (I didn't capture locked pairs for these two): **FP16/FP32-accumulate ~186**, FP16/FP16-accumulate ~250, BF16/FP32-accumulate ~148. So FP16 and BF16 **diverge** in GEMM even though both use FP32 accumulation — which echoes your "FP16 gained 12–34%, BF16 … essentially unchanged at 4096³" note. ### Not a library artifact I suspected the distro cuBLAS 12.0, so I re-ran the identical binary against the cuBLAS 12.9 wheel (`nvidia-cublas-cu12`, what PyTorch ships) via `LD_LIBRARY_PATH` — the BF16 numbers were **identical**. So it isn't a 12.0-vs-12.9 thing. ### Questions Your README already notes that the 4090's register BF16→FP32-accumulate rate roughly doubles (165.5 → 330.6 TF/s) while real cuBLAS BF16 "was essentially unchanged at 4096³," and that the MoE case is "consistent with quantized matmuls not consuming the FP32-accumulate tensor path." My 4090 D result looks like the same effect, one shape larger and on the "D": 1. Do you have a working understanding of **why the doubled BF16→FP32-accumulate *issue* rate doesn't carry into large-square GEMM, while TF32 (also ~2× at issue level) does**? 2. Is there a **second limiter on the FP16/BF16 FP32-accumulate GEMM path** that SS0 speed-select doesn't govern — e.g. an accumulator-port / clock / power-cap interaction that full square GEMM hits but the register-resident probe doesn't — as opposed to TF32, which realizes the gain end-to-end? The FP16-vs-BF16 divergence above makes me suspect the limiter is specific to BF16 rather than to FP32-accumulate in general. 3. Is the **4090 D** expected to match the plain 4090 here, or could the experimental `2685` path leave something extra in place? Not reporting a bug — the unlock applied cleanly and TF32 is a genuine ~2× win on these cards. I'm just trying to understand the BF16 side, and your notes suggest you've already looked right at this. Thanks again for sharing the work.
Author
Owner

@sccbhxc commented on GitHub (Oct 30, 2026):

I also suffer a similar problem. The improvement on BF16(fp32 accum) (from 142 to 145) and FP16(fp32 accum) (from 145 to 167) is very limited . But TF 32 is double.

GPU Benchmark Environment

Item Configuration
GPU NVIDIA GeForce RTX 4090 D
PyTorch 2.11.0+cu128
CUDA Runtime 12.8
Matrix Size 8192 × 8192

GPU Compute Performance Results

Unit: TFLOPS

Precision Mode Round 1 Round 2 Round 3 Round 4 Round 5
FP16_FP32acc 167.61 167.52 166.63 168.29 168.32
BF16_FP32acc 144.78 145.69 145.84 145.76 145.67
TF32 125.02 128.83 130.03 130.11 125.33
FP32_strict 50.50 50.34 49.93 50.67 49.80

Statistical Summary

Precision Mode Median (TFLOPS) Minimum Maximum Range Width NaN/Inf
FP16_FP32acc 167.61 166.63 168.32 1.68 False
BF16_FP32acc 145.69 144.78 145.84 1.07 False
TF32 128.83 125.02 130.11 5.09 False
FP32_strict 50.34 49.80 50.67 0.87 False
<!-- gh-comment-id:6523919340 --> @sccbhxc commented on GitHub (Oct 30, 2026): I also suffer a similar problem. The improvement on BF16(fp32 accum) (from 142 to 145) and FP16(fp32 accum) (from 145 to 167) is very limited . But TF 32 is double. ### GPU Benchmark Environment | Item | Configuration | | ------------ | ------------------------- | | GPU | NVIDIA GeForce RTX 4090 D | | PyTorch | 2.11.0+cu128 | | CUDA Runtime | 12.8 | | Matrix Size | 8192 × 8192 | ### GPU Compute Performance Results Unit: TFLOPS | Precision Mode | Round 1 | Round 2 | Round 3 | Round 4 | Round 5 | | -------------- | ------- | ------- | ------- | ------- | ------- | | FP16_FP32acc | 167.61 | 167.52 | 166.63 | 168.29 | 168.32 | | BF16_FP32acc | 144.78 | 145.69 | 145.84 | 145.76 | 145.67 | | TF32 | 125.02 | 128.83 | 130.03 | 130.11 | 125.33 | | FP32_strict | 50.50 | 50.34 | 49.93 | 50.67 | 49.80 | ### Statistical Summary | Precision Mode | Median (TFLOPS) | Minimum | Maximum | Range Width | NaN/Inf | | -------------- | --------------- | ------- | ------- | ----------- | ------- | | FP16_FP32acc | 167.61 | 166.63 | 168.32 | 1.68 | False | | BF16_FP32acc | 145.69 | 144.78 | 145.84 | 1.07 | False | | TF32 | 128.83 | 125.02 | 130.11 | 5.09 | False | | FP32_strict | 50.34 | 49.80 | 50.67 | 0.87 | False |
Sign in to join this conversation.
No labels
pull-request
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
JustAResearcher/gpu-unlock-ada#53
No description provided.