[GH-ISSUE #120] GPU-UNLOCK RTX 4080 Super #75

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

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

Another data point for AD103, on a board not listed in #100 / #70: NVIDIA Founders Edition.

Card and host

GPU RTX 4080 SUPER Founders Edition, AD103 rev A1, 10de:2702, subsystem 10de:18cc, 16 GB
VBIOS 95.03.44.00.90
Distro / kernel CachyOS (Arch-based), 7.2.5-1-cachyos, built with clang, GRUB (UEFI), Secure Boot off, no lockdown
Driver nvidia-utils 615.71.09 (open kernel modules), stock/unmodified
Unlock gpu-unlock-ada v1.1.1 @ d28c485, kargs gpu_unlock.targets=0000:08:00.0 gpu_unlock.ad103_experimental=1
Power 320 W default limit, unchanged

Journal: pci 0000:08:00.0: gpu_unlock: unlocked; no Xid / NVRM errors in any unlocked boot (3 unlocked boots so far). Single GPU, desktop (KDE Wayland) loaded in every measurement.

Result: same command, same locked clock, stock boot vs unlock boot

torch.mm 8192^3, strict mode (allow_*_reduced_precision_reduction=False, CUBLAS_WORKSPACE_CONFIG=:4096:8), SM clock locked with nvidia-smi -lgc 1950,1950 (read-back verified, SW power cap 0 % of samples), 20 timed reps after warm-up, median:

Test stock (TFLOPS) unlock (TFLOPS) ratio
FP16 -> FP32 acc 77.7 153.3 1.97x
BF16 77.5 152.8 1.97x
TF32 38.9 77.1 1.99x
FP32 scalar (negative control) 29.0 29.5 1.02x
FP16 8191x8192x8193 (unaligned) 66.2 89.5 1.35x

Golden numerical check within tolerance in all dtypes, both states. CV <= 0.04, IQR/median <= 0.008, no slow reps.

Things that may help others

  1. DKMS needs LLVM=1 on a clang-built kernel. Plain make/dkms build fails (gcc rejects the kernel's flags). make -C /usr/lib/modules/$(uname -r)/build M=... LLVM=1 builds fine (vermagic matches).
  2. Safe install on Arch: the stock package puts the mkinitcpio drop-in in all initramfs. I installed with a temporary pacman.conf copy using NoExtract for etc/mkinitcpio.conf.d/zz-gpu-unlock.conf (and the dracut conf), with the pacman alpm hooks dir empty for that one transaction, ran dkms install by hand, then built a separate initramfs (mkinitcpio -c /etc/mkinitcpio-unlock.conf -g /boot/initramfs-...-unlock.img, gpu_unlock first in MODULES, before nvidia*). The normal initramfs stayed byte-identical (checked with sha256).
  3. GRUB safety net: a frozen copy of the stock kernel+initramfs (chattr +i), a menu entry with module_blacklist=gpu_unlock, and a rehearsed "edit the entry with e and delete the two gpu_unlock.* args" boot (module loads inert: in lsmod, no unlocked in the journal).
  4. Free-running clocks understate the gain. With clocks free, sustained FP16 8192^3 sits around 160-174 TFLOPS (1.5-1.6x), because the card hits the 320 W SW power cap (clocks_event_reasons.active bit 0x4); short bursts (median of 5 reps) reach 187-199 TFLOPS, close to the 209 reported in #100. For a fair A/B, lock the same clock in both states. In strict mode the unlocked card did not hold 2010 MHz under a heavier load (it read 1905-1965 MHz); locks <= 1980 MHz held with 0 % power-cap samples.
  5. Use median + IQR/median, not CV, for gating long runs. 60 s runs (thousands of reps) show 5-10 % isolated slow reps on stock too (CV ~0.09), while 20-rep runs show CV ~0.01.
  6. Persistence mode on, GPU idle <= 50 C (this FE keeps the fan at 0 % and idles ~47 C), and no other GPU apps (a video player alone was enough to invalidate a run).

Not verified

Long-duration stability, other drivers, other 2702 boards (only this FE), whether a warm reboot into the non-module entry keeps the unlocked rates (I always cut AC before stock runs), suspend/resume.

Measurements and the notes above were produced with the help of an AI coding agent (Claude Code) working under my supervision; I can attach the raw JSON reports if useful.

Originally created by @atipico on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/120 Another data point for AD103, on a board not listed in #100 / #70: **NVIDIA Founders Edition**. ## Card and host | | | |---|---| | GPU | RTX 4080 SUPER Founders Edition, AD103 rev A1, `10de:2702`, subsystem `10de:18cc`, 16 GB | | VBIOS | `95.03.44.00.90` | | Distro / kernel | CachyOS (Arch-based), `7.2.5-1-cachyos`, **built with clang**, GRUB (UEFI), Secure Boot off, no lockdown | | Driver | `nvidia-utils` 615.71.09 (open kernel modules), stock/unmodified | | Unlock | `gpu-unlock-ada` v1.1.1 @ `d28c485`, kargs `gpu_unlock.targets=0000:08:00.0 gpu_unlock.ad103_experimental=1` | | Power | 320 W default limit, unchanged | Journal: `pci 0000:08:00.0: gpu_unlock: unlocked`; no Xid / NVRM errors in any unlocked boot (3 unlocked boots so far). Single GPU, desktop (KDE Wayland) loaded in every measurement. ## Result: same command, same locked clock, stock boot vs unlock boot `torch.mm` 8192^3, strict mode (`allow_*_reduced_precision_reduction=False`, `CUBLAS_WORKSPACE_CONFIG=:4096:8`), SM clock locked with `nvidia-smi -lgc 1950,1950` (read-back verified, SW power cap 0 % of samples), 20 timed reps after warm-up, median: | Test | stock (TFLOPS) | unlock (TFLOPS) | ratio | |---|---:|---:|---:| | FP16 -> FP32 acc | 77.7 | 153.3 | **1.97x** | | BF16 | 77.5 | 152.8 | **1.97x** | | TF32 | 38.9 | 77.1 | **1.99x** | | FP32 scalar (negative control) | 29.0 | 29.5 | 1.02x | | FP16 8191x8192x8193 (unaligned) | 66.2 | 89.5 | 1.35x | Golden numerical check within tolerance in all dtypes, both states. CV <= 0.04, IQR/median <= 0.008, no slow reps. ## Things that may help others 1. **DKMS needs `LLVM=1` on a clang-built kernel.** Plain `make`/`dkms build` fails (gcc rejects the kernel's flags). `make -C /usr/lib/modules/$(uname -r)/build M=... LLVM=1` builds fine (`vermagic` matches). 2. **Safe install on Arch:** the stock package puts the mkinitcpio drop-in in *all* initramfs. I installed with a temporary `pacman.conf` copy using `NoExtract` for `etc/mkinitcpio.conf.d/zz-gpu-unlock.conf` (and the dracut conf), with the pacman alpm hooks dir empty for that one transaction, ran `dkms install` by hand, then built a **separate** initramfs (`mkinitcpio -c /etc/mkinitcpio-unlock.conf -g /boot/initramfs-...-unlock.img`, `gpu_unlock` first in `MODULES`, before `nvidia*`). The normal initramfs stayed byte-identical (checked with sha256). 3. **GRUB safety net:** a frozen copy of the stock kernel+initramfs (`chattr +i`), a menu entry with `module_blacklist=gpu_unlock`, and a rehearsed "edit the entry with `e` and delete the two `gpu_unlock.*` args" boot (module loads inert: in `lsmod`, no `unlocked` in the journal). 4. **Free-running clocks understate the gain.** With clocks free, sustained FP16 8192^3 sits around 160-174 TFLOPS (1.5-1.6x), because the card hits the **320 W SW power cap** (`clocks_event_reasons.active` bit `0x4`); short bursts (median of 5 reps) reach 187-199 TFLOPS, close to the 209 reported in #100. For a fair A/B, lock the same clock in both states. In strict mode the unlocked card did **not** hold 2010 MHz under a heavier load (it read 1905-1965 MHz); locks <= 1980 MHz held with 0 % power-cap samples. 5. **Use median + IQR/median, not CV, for gating long runs.** 60 s runs (thousands of reps) show 5-10 % isolated slow reps on stock too (CV ~0.09), while 20-rep runs show CV ~0.01. 6. Persistence mode on, GPU idle <= 50 C (this FE keeps the fan at 0 % and idles ~47 C), and no other GPU apps (a video player alone was enough to invalidate a run). ## Not verified Long-duration stability, other drivers, other 2702 boards (only this FE), whether a warm reboot into the *non-module* entry keeps the unlocked rates (I always cut AC before stock runs), suspend/resume. Measurements and the notes above were produced with the help of an AI coding agent (Claude Code) working under my supervision; I can attach the raw JSON reports if useful.
Author
Owner

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

Thanks for the write-up — the clock-locking methodology and the power-cap observation are the parts I'll be borrowing.

An adjacent data point on a different platform, in case it's useful for comparison: retail RTX 4080 16 GB (10de:2704, not Super) on Windows 11 / ASRock Z390, unlocked from a UEFI application before the OS loads — one run per cold boot, not a kernel module.

Workload (native Windows torch, 4096³, median of 3) stock unlocked ratio
FP16 → FP32 acc 91.93 174.35 1.90×
BF16 → FP32 acc 91.94 176.20 1.92×
FP32 (negative control) 35.49 35.48 1.00×

Slightly below your 1.97×, and I suspect for the reason you describe: I did not lock SM clocks, and the card sits on its 340 W default during sustained GEMM.

Two things that may matter for anyone attempting the Windows/UEFI route:

  1. The blocker is ownership, not the selector write. On this board the firmware initialises the target GPU and keeps a BY_DRIVER open on the handle, so an "expect no owners" gate can never pass. DisconnectController(handle, NULL, NULL) disconnects the PCI bus binding too and hangs the firmware — it has to be the owning agent only, under TPL_NOTIFY, followed by re-acquiring PciIo by BDF because the handle is destroyed by the disconnect.
  2. No gain on fp8-quantised inference. A 19.9 GB checkpoint on a 16 GB card stayed at ~312 s warm across unlocked boots. Consistent with the gain being compute-bound only.

Full notes and logs: https://github.com/pepsiboy87/ad103-win-uefi-port (measurements also in JustAResearcher/gpu-unlock-ada#115).

<!-- gh-comment-id:6528243217 --> @pepsiboy87 commented on GitHub (Oct 30, 2026): Thanks for the write-up — the clock-locking methodology and the power-cap observation are the parts I'll be borrowing. An adjacent data point on a different platform, in case it's useful for comparison: retail **RTX 4080 16 GB** (`10de:2704`, not Super) on **Windows 11 / ASRock Z390**, unlocked from a UEFI application before the OS loads — one run per cold boot, not a kernel module. | Workload (native Windows torch, 4096³, median of 3) | stock | unlocked | ratio | |---|---:|---:|---:| | FP16 → FP32 acc | 91.93 | 174.35 | 1.90× | | BF16 → FP32 acc | 91.94 | 176.20 | 1.92× | | FP32 (negative control) | 35.49 | 35.48 | 1.00× | Slightly below your 1.97×, and I suspect for the reason you describe: I did **not** lock SM clocks, and the card sits on its 340 W default during sustained GEMM. Two things that may matter for anyone attempting the Windows/UEFI route: 1. **The blocker is ownership, not the selector write.** On this board the firmware initialises the target GPU and keeps a `BY_DRIVER` open on the handle, so an "expect no owners" gate can never pass. `DisconnectController(handle, NULL, NULL)` disconnects the PCI bus binding too and hangs the firmware — it has to be the owning agent only, under `TPL_NOTIFY`, followed by re-acquiring `PciIo` by BDF because the handle is destroyed by the disconnect. 2. **No gain on fp8-quantised inference.** A 19.9 GB checkpoint on a 16 GB card stayed at ~312 s warm across unlocked boots. Consistent with the gain being compute-bound only. Full notes and logs: https://github.com/pepsiboy87/ad103-win-uefi-port (measurements also in `JustAResearcher/gpu-unlock-ada#115`).
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#75
No description provided.