[GH-ISSUE #61] Compatibility report: NVIDIA RTX 3080 Ti 12 GB, GA102-225 (10de:2208) — unlocked, BF16 GEMM +63%, controls flat, outputs bit-identical #43

Closed
opened 2026-10-26 16:39:44 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @dansolombrino on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/61

Result

Unlocked, and FP16/BF16 got faster

Card

NVIDIA-branded GeForce RTX 3080 Ti 12 GB (subsystem 10de:1535, GPU part number 2208-225-A1, i.e. GA102-225), unmodified. Different board from #59 (HP OEM, subsystem 103c:88b8) and from #28 (GA102-250, 10de:2205).

PCI IDs

0000:08:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3080 Ti] [10de:2208] (rev a1)
0000:08:00.1 Audio device [0403]: NVIDIA Corporation GA102 High Definition Audio Controller [10de:1aef] (rev a1)

VBIOS version

00000000:08:00.0, 94.02.71.80.07

Is the card modified?

Stock

Distribution

Ubuntu 24.04.4 LTS (bare metal)

Kernel

6.8.0-147-generic

NVIDIA driver

595.91.07, open kernel modules (nvidia-driver-595-server-open / nvidia-dkms-595-server-open from the Ubuntu archive)

Initramfs generator

initramfs-tools

gpu-unlock version and install method

af28cbb, make install-deb, unmodified.

Note re #59: make install-deb worked as-is on stock Ubuntu 24.04 here. apt-get build-dep satisfied dh-sequence-dkms with dh-dkms 3.0.11-1ubuntu13 from noble/universe, which does ship /usr/share/perl5/Debian/Debhelper/Sequence/dkms.pm; dkms stayed at the stock 3.0.11-1ubuntu13. So the failure in #59 may come down to the universe component not being enabled in that VM.

Kernel command line

BOOT_IMAGE=/vmlinuz-6.8.0-147-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro gpu_unlock.targets=all

Setup

  • Single GPU, bare metal, AMD platform, legacy BIOS boot (no EFI, so no Secure Boot).
  • The 3080 Ti is the only VGA device, so it is also the boot-console card; no monitor attached (headless, used over SSH).
  • Stock 350 W power limit (= default = max). Every test below, before and after, runs at the 350 W power cap.
  • gpu_unlock.resume left at its default.
  • First boot after installation unlocked the card with no errors; nvidia bound it normally afterwards.

Kernel log

Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: loading out-of-tree module taints kernel.
Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: module verification failed: signature and/or required key missing - tainting kernel
Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM chain: pos=0x0 data=0x52494350 bytes=65024 type=0x0 last=0
Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM chain: pos=0xfe00 data=0x52494350 bytes=92672 type=0x3 last=0
Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM chain: pos=0x26800 data=0x5344504e bytes=22016 type=0xe0 last=0
Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM chain: pos=0x2be00 data=0x5344504e bytes=383488 type=0xe0 last=128
Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM expansion: base=0xfe00 ext=0x26800 adjust=0x16a00
Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM BIT: offset=0x1b0 size=12 stride=6 tokens=18 adjust=0x16a00
Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM ucode table: offset=0x895f1 version=1 header=6 stride=6 entries=16
Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: FWSEC descriptor: offset=0x433b8 ROM_bytes=1048576 header=0x4ac0301
Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: FWSEC geometry: image_off=0x43864 size=0xea00 imem=0xe200 va=0x0 pa=0x0 dmem=0x800 pa=0x0 pkc=0x5a4 interface=0x1c engine=0x400 ucode=9 signatures=3 versions=0x7 bytes=1152
Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: FWSEC interface: offset=0x1c version=1 header=4 stride=8 entries=2 FRTS=0x2ffee0000
Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: FWSEC mapper: version=3 size=64 cmd_offset=0x7c0 cmd_size=64
Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: FWSEC signature selection: versions=0x7 fuse_version=2 sig_bytes=384
Oct 24 18:59:25 rig-3080-ti kernel: pci 0000:08:00.0: gpu_unlock: unlocked

Benchmark before and after

torch 2.11.0+cu128 (cuBLAS / cuDNN / FlashAttention via SDPA), driver 595.91.07, 350 W, no clock lock. Dense 8192³ GEMM, FP32 accumulation (allow_fp16_reduced_precision_reduction and allow_bf16_reduced_precision_reduction disabled), median of 7 samples of ~0.6 s each after 1.5 s warmup.

Input Before After Gain
FP16 70.2 113.7 +62%
BF16 72.0 117.6 +63%
TF32 37.7 63.1 +67%

The full suite also ran workloads built on the same instructions, plus controls the unlock should not touch (FP16 GEMM with FP16 accumulation, FP32 SIMT GEMM, INT8 torch._int_mm, 1 GiB device copy) to rule out clock/power/thermal differences between the two boots:

Test Before After Ratio
GEMM BF16 4096³ (TFLOPS) 70.3 120.9 1.72x
GEMM FP16 4096³ (TFLOPS) 69.6 117.4 1.69x
FlashAttention BF16, B8 H16 S4096 D128 (TFLOPS) 70.0 110.6 1.58x
FlashAttention FP16, same shape (TFLOPS) 68.9 108.3 1.57x
conv2d 3×3 BF16, 32×256×64×64, channels_last (TFLOPS) 73.3 124.7 1.70x
FFN block BF16, 8192 tok, 4096→16384→4096 (TFLOPS) 69.3 116.4 1.68x
control: GEMM FP16 w/ FP16 accumulation 8192³ (TFLOPS) 117.1 117.3 1.00x
control: GEMM FP32 SIMT 4096³ (TFLOPS) 23.6 23.6 1.00x
control: GEMM INT8 8192³ (TOPS) 66.0 65.8 1.00x
control: device copy 1 GiB (GB/s) 824.2 824.4 1.00x

Observations:

  • Run-to-run noise, from two "before" runs a few minutes apart: ≤1.2% on every test.
  • All controls stayed within 0.3%, so the gain isn't a clock/power artifact.
  • The unlocked BF16/FP16-with-FP32-accumulation rate lands on the FP16-with-FP16-accumulation rate (~117 TFLOPS), which was never half-rate. That's what you'd expect if the full-rate path is now the limit.
  • The card is power-capped in both states. After the unlock the GEMMs run at ~1500–1700 MHz instead of ~1750–1920 MHz at the same 350 W, so 350 W, not the issue rate, is now the ceiling.
  • Correctness: seeded 2048² BF16, FP16 and TF32 matmuls gave bit-identical output (SHA-256) before and after, with unchanged max relative error vs an FP64 reference (2.2e-3 / 2.7e-4 / 3.2e-4).
  • Caveat: "before" was taken on 6.8.0-146 and "after" on 6.8.0-147. unattended-upgrades had installed 147 earlier, and the reboot for the unlock activated it. Same driver, torch and cuBLAS; the flat controls and identical hashes suggest the kernel change didn't matter.
Raw comparison output
A = before-1  (2026-10-24 18:08:51, gpu_unlock loaded: False)
B = after  (2026-10-24 20:01:15, gpu_unlock loaded: True)
NOTE: kernel differs: 6.8.0-146-generic -> 6.8.0-147-generic

test                           A         B unit      B/A      clk A→B  expected
gemm_bf16_8192             71.95    117.59 TFLOPS  1.63x   1785→1515   up a lot (~1.3-2x)
gemm_fp16_8192             70.21    113.68 TFLOPS  1.62x   1755→1470   up a lot (~1.3-2x)
gemm_tf32_8192             37.74     63.07 TFLOPS  1.67x   1890→1620   up a lot (~1.3-2x)
gemm_bf16_4096             70.31    120.86 TFLOPS  1.72x   1920→1695   up a lot (~1.3-2x)
gemm_fp16_4096             69.58    117.41 TFLOPS  1.69x   1905→1665   up a lot (~1.3-2x)
attn_flash_bf16            69.98    110.59 TFLOPS  1.58x   1890→1680   up somewhat
attn_flash_fp16            68.90    108.31 TFLOPS  1.57x   1860→1650   up somewhat
conv3x3_bf16               73.30    124.69 TFLOPS  1.70x   1845→1605   up somewhat
mlp_prefill_bf16           69.34    116.37 TFLOPS  1.68x   1785→1560   up somewhat
gemm_fp16acc16_8192       117.05    117.33 TFLOPS  1.00x   1530→1545   flat (±5%)
gemm_fp32_simt_4096        23.60     23.57 TFLOPS  1.00x   1605→1605   flat (±5%)
gemm_int8_8192             65.95     65.77 TOPS    1.00x   1665→1665   flat (±5%)
mem_copy_1GiB             824.16    824.36 GB/s    1.00x   1980→1980   flat (±5%)

correctness (bit-exact hash A vs B, rel err vs FP64):
  bf16  identical   2.2e-03 → 2.2e-03
  fp16  identical   2.7e-04 → 2.7e-04
  tf32  identical   3.2e-04 → 3.2e-04

BF16 GEMM speedup 1.63x, largest control drift 0.3%
VERDICT: UNLOCKED: tensor-core FP16/BF16 rate went up, controls flat
Benchmark script (unlock_bench.py run <label> / compare a.json b.json)
"""Before/after benchmark for gpu-unlock (FP16/BF16 tensor-core rate unlock).

    python unlock_bench.py run <label>            -> results/<label>.json
    python unlock_bench.py compare <a.json> <b.json>

Three groups of tests:
  target   - FP16/BF16/TF32 tensor-core work with FP32 accumulation. This is
             what the unlock doubles, so these should go up a lot.
  workload - real kernels built on the same instructions (attention, conv).
             Should go up, by less.
  control  - work the unlock does not touch (FP16-accumulate GEMM, FP32 CUDA
             cores, INT8, memory bandwidth). Should stay flat; if they move,
             clocks/power/thermals changed and the comparison is suspect.
Plus a correctness check: seeded matmuls hashed bit-for-bit and checked
against an FP64 reference.
"""
import hashlib, json, os, platform, statistics, subprocess, sys, threading, time
from pathlib import Path

import torch
import torch.nn.functional as F
import pynvml

SAMPLES = 7          # timed samples per test, median reported
SAMPLE_SECONDS = 0.6 # target duration of one sample
WARMUP_SECONDS = 1.5
RESULTS = Path(__file__).resolve().parent / "results"


def sh(cmd):
    try:
        return subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=30).stdout.strip()
    except Exception as e:
        return f"<error: {e}>"


# --- telemetry ---------------------------------------------------------------

class Telemetry:
    """Samples SM clock, power and temperature in the background during a test."""

    def __init__(self, handle, period=0.1):
        self.h, self.period, self.rows, self._stop = handle, period, [], threading.Event()

    def __enter__(self):
        self.rows, self._stop = [], threading.Event()
        self.t = threading.Thread(target=self._run, daemon=True)
        self.t.start()
        return self

    def _run(self):
        while not self._stop.is_set():
            self.rows.append((
                pynvml.nvmlDeviceGetClockInfo(self.h, pynvml.NVML_CLOCK_SM),
                pynvml.nvmlDeviceGetPowerUsage(self.h) / 1000,
                pynvml.nvmlDeviceGetTemperature(self.h, pynvml.NVML_TEMPERATURE_GPU),
                pynvml.nvmlDeviceGetCurrentClocksThrottleReasons(self.h),
            ))
            time.sleep(self.period)

    def __exit__(self, *exc):
        self._stop.set()
        self.t.join()

    def summary(self):
        if not self.rows:
            return {}
        clk, pwr, tmp, thr = zip(*self.rows)
        reasons = 0
        for r in thr:
            reasons |= r
        names = {
            pynvml.nvmlClocksThrottleReasonSwPowerCap: "power_cap",
            pynvml.nvmlClocksThrottleReasonHwSlowdown: "hw_slowdown",
            pynvml.nvmlClocksThrottleReasonSwThermalSlowdown: "sw_thermal",
            pynvml.nvmlClocksThrottleReasonHwThermalSlowdown: "hw_thermal",
        }
        return {
            "sm_clock_mhz": statistics.median(clk),
            "power_w": statistics.median(pwr),
            "temp_c": max(tmp),
            "throttle": sorted(n for bit, n in names.items() if reasons & bit),
        }


# --- timing ------------------------------------------------------------------

def time_op(fn):
    """Median seconds per call of fn, with warmup and auto-calibrated batch size."""
    t0 = time.perf_counter()
    while time.perf_counter() - t0 < WARMUP_SECONDS:
        fn()
        torch.cuda.synchronize()
    s, e = torch.cuda.Event(enable_timing=True), torch.cuda.Event(enable_timing=True)
    s.record(); fn(); e.record(); torch.cuda.synchronize()
    iters = max(1, int(SAMPLE_SECONDS / (s.elapsed_time(e) / 1e3)))
    per_call = []
    for _ in range(SAMPLES):
        s.record()
        for _ in range(iters):
            fn()
        e.record(); torch.cuda.synchronize()
        per_call.append(s.elapsed_time(e) / 1e3 / iters)
    return statistics.median(per_call), (max(per_call) - min(per_call)) / statistics.median(per_call)


class matmul_flags:
    """Temporarily set torch matmul precision knobs."""

    def __init__(self, tf32=False, fp16_acc=False):
        self.want = {"allow_tf32": tf32, "allow_fp16_accumulation": fp16_acc,
                     "allow_fp16_reduced_precision_reduction": False,
                     "allow_bf16_reduced_precision_reduction": False}

    def __enter__(self):
        m = torch.backends.cuda.matmul
        self.old = {k: getattr(m, k) for k in self.want if hasattr(m, k)}
        for k in self.old:
            setattr(m, k, self.want[k])
        torch.backends.cudnn.allow_tf32 = self.want["allow_tf32"]

    def __exit__(self, *exc):
        for k, v in self.old.items():
            setattr(torch.backends.cuda.matmul, k, v)


# --- tests -------------------------------------------------------------------
# Each returns (fn, flop_or_byte_count, unit, flags).

def gemm(n, dtype, tf32=False, fp16_acc=False):
    a = torch.randn(n, n, device="cuda", dtype=dtype)
    b = torch.randn(n, n, device="cuda", dtype=dtype)
    return (lambda: a @ b), 2 * n**3, "TFLOPS", matmul_flags(tf32=tf32, fp16_acc=fp16_acc)


def int8_gemm(n):
    a = torch.randint(-128, 127, (n, n), device="cuda", dtype=torch.int8)
    b = torch.randint(-128, 127, (n, n), device="cuda", dtype=torch.int8)
    return (lambda: torch._int_mm(a, b)), 2 * n**3, "TOPS", matmul_flags()


def attention(dtype, b=8, h=16, s=4096, d=128):
    q, k, v = (torch.randn(b, h, s, d, device="cuda", dtype=dtype) for _ in range(3))
    def fn():
        with torch.nn.attention.sdpa_kernel(torch.nn.attention.SDPBackend.FLASH_ATTENTION):
            F.scaled_dot_product_attention(q, k, v)
    return fn, 4 * b * h * s * s * d, "TFLOPS", matmul_flags()


def conv(dtype, n=32, c=256, hw=64, k=3):
    x = torch.randn(n, c, hw, hw, device="cuda", dtype=dtype).to(memory_format=torch.channels_last)
    w = torch.randn(c, c, k, k, device="cuda", dtype=dtype).to(memory_format=torch.channels_last)
    torch.backends.cudnn.benchmark = True
    return (lambda: F.conv2d(x, w, padding=k // 2)), 2 * n * c * c * k * k * hw * hw, "TFLOPS", matmul_flags()


def mlp_block(dtype, tokens=8192, d=4096):
    """Transformer FFN as in LLM prefill: up-proj, GELU, down-proj."""
    x = torch.randn(tokens, d, device="cuda", dtype=dtype)
    w1 = torch.randn(d, 4 * d, device="cuda", dtype=dtype) / d**0.5
    w2 = torch.randn(4 * d, d, device="cuda", dtype=dtype) / d**0.5
    return (lambda: F.gelu(x @ w1) @ w2), 2 * 2 * tokens * d * 4 * d, "TFLOPS", matmul_flags()


def mem_copy(mib=1024):
    src = torch.empty(mib * 2**20, device="cuda", dtype=torch.uint8)
    dst = torch.empty_like(src)
    return (lambda: dst.copy_(src)), 2 * src.numel(), "GB/s", matmul_flags()


TESTS = [
    # name, group, factory
    ("gemm_bf16_8192", "target", lambda: gemm(8192, torch.bfloat16)),
    ("gemm_fp16_8192", "target", lambda: gemm(8192, torch.float16)),
    ("gemm_tf32_8192", "target", lambda: gemm(8192, torch.float32, tf32=True)),
    ("gemm_bf16_4096", "target", lambda: gemm(4096, torch.bfloat16)),
    ("gemm_fp16_4096", "target", lambda: gemm(4096, torch.float16)),
    ("attn_flash_bf16", "workload", lambda: attention(torch.bfloat16)),
    ("attn_flash_fp16", "workload", lambda: attention(torch.float16)),
    ("conv3x3_bf16", "workload", lambda: conv(torch.bfloat16)),
    ("mlp_prefill_bf16", "workload", lambda: mlp_block(torch.bfloat16)),
    ("gemm_fp16acc16_8192", "control", lambda: gemm(8192, torch.float16, fp16_acc=True)),
    ("gemm_fp32_simt_4096", "control", lambda: gemm(4096, torch.float32)),
    ("gemm_int8_8192", "control", lambda: int8_gemm(8192)),
    ("mem_copy_1GiB", "control", lambda: mem_copy()),
]


def correctness():
    """Bit-exact hashes of seeded matmuls, plus max relative error vs FP64."""
    out = {}
    g = torch.Generator(device="cpu").manual_seed(1234)
    a64 = torch.randn(2048, 2048, generator=g, dtype=torch.float64)
    b64 = torch.randn(2048, 2048, generator=g, dtype=torch.float64)
    for name, dtype, tf32 in [("bf16", torch.bfloat16, False), ("fp16", torch.float16, False),
                              ("tf32", torch.float32, True)]:
        with matmul_flags(tf32=tf32):
            a, b = a64.to(dtype), b64.to(dtype)
            c = (a.cuda() @ b.cuda()).cpu()
        ref = a.double() @ b.double()
        rel = ((c.double() - ref).abs().max() / ref.abs().max()).item()
        out[name] = {"sha256": hashlib.sha256(c.contiguous().view(torch.uint8).numpy().tobytes()).hexdigest()[:16],
                     "max_rel_err": rel}
    return out


def environment(handle):
    unlock_lines = sh("journalctl -k -b --no-pager 2>/dev/null | grep -i gpu_unlock | tail -20")
    return {
        "timestamp": time.strftime("%Y-%m-%d %H:%M:%S"),
        "host": platform.node(),
        "kernel": platform.release(),
        "cmdline": Path("/proc/cmdline").read_text().strip(),
        "gpu_unlock_module_loaded": Path("/sys/module/gpu_unlock").exists(),
        "gpu_unlock_kernel_log": unlock_lines.splitlines(),
        "gpu": torch.cuda.get_device_name(0),
        "pci_id": sh("lspci -nn -d 10de: | grep -E 'VGA|3D' | grep -o '10de:[0-9a-f]*' | head -1"),
        "driver": pynvml.nvmlSystemGetDriverVersion(),
        "torch": torch.__version__,
        "cuda": torch.version.cuda,
        "cudnn": torch.backends.cudnn.version(),
        "power_limit_w": pynvml.nvmlDeviceGetPowerManagementLimit(handle) / 1000,
        "max_sm_clock_mhz": pynvml.nvmlDeviceGetMaxClockInfo(handle, pynvml.NVML_CLOCK_SM),
        "other_gpu_processes": len(pynvml.nvmlDeviceGetComputeRunningProcesses(handle)),
    }


def run(label):
    pynvml.nvmlInit()
    handle = pynvml.nvmlDeviceGetHandleByIndex(0)
    env = environment(handle)
    print(f"{env['gpu']} ({env['pci_id']})  driver {env['driver']}  torch {env['torch']}")
    print(f"gpu_unlock loaded: {env['gpu_unlock_module_loaded']}   cmdline: {env['cmdline']}")
    if env["other_gpu_processes"]:
        print(f"WARNING: {env['other_gpu_processes']} other process(es) are using the GPU; numbers will be noisy")
    print(f"\n{'test':22} {'group':9} {'result':>14} {'spread':>7} {'SM MHz':>7} {'W':>5} {'°C':>4}  throttle")
    tel = Telemetry(handle)
    results = {}
    for name, group, factory in TESTS:
        fn, work, unit, flags = factory()
        with flags, tel:
            secs, spread = time_op(fn)
        value = work / secs / (1e12 if unit in ("TFLOPS", "TOPS") else 1e9)
        results[name] = {"group": group, "value": value, "unit": unit, "spread": spread, **tel.summary()}
        r = results[name]
        print(f"{name:22} {group:9} {value:8.2f} {unit:6} {spread:6.1%} {r['sm_clock_mhz']:7.0f} "
              f"{r['power_w']:5.0f} {r['temp_c']:4}  {','.join(r['throttle']) or '-'}")
        del fn
        torch.cuda.empty_cache()
    corr = correctness()
    print("\ncorrectness:", ", ".join(f"{k} {v['sha256']} (rel err {v['max_rel_err']:.1e})" for k, v in corr.items()))
    RESULTS.mkdir(exist_ok=True)
    path = RESULTS / f"{label}.json"
    path.write_text(json.dumps({"label": label, "env": env, "results": results, "correctness": corr}, indent=2))
    print(f"\nsaved {path}")


# --- comparison --------------------------------------------------------------

EXPECT = {"target": "up a lot (~1.3-2x)", "workload": "up somewhat", "control": "flat (±5%)"}


def compare(pa, pb):
    a, b = (json.loads(Path(p).read_text()) for p in (pa, pb))
    print(f"A = {a['label']}  ({a['env']['timestamp']}, gpu_unlock loaded: {a['env']['gpu_unlock_module_loaded']})")
    print(f"B = {b['label']}  ({b['env']['timestamp']}, gpu_unlock loaded: {b['env']['gpu_unlock_module_loaded']})")
    for key in ("driver", "torch", "power_limit_w", "kernel"):
        if a["env"][key] != b["env"][key]:
            print(f"NOTE: {key} differs: {a['env'][key]} -> {b['env'][key]}")
    print(f"\n{'test':22} {'A':>9} {'B':>9} {'unit':6} {'B/A':>6}  {'clk A→B':>11}  expected")
    ratios = {}
    for name, ra in a["results"].items():
        rb = b["results"].get(name)
        if not rb:
            continue
        ratios[name] = rb["value"] / ra["value"]
        print(f"{name:22} {ra['value']:9.2f} {rb['value']:9.2f} {ra['unit']:6} {ratios[name]:5.2f}x"
              f"  {ra['sm_clock_mhz']:5.0f}→{rb['sm_clock_mhz']:<5.0f}  {EXPECT[ra['group']]}")

    print("\ncorrectness (bit-exact hash A vs B, rel err vs FP64):")
    bit_identical = True
    for k, ca in a["correctness"].items():
        cb = b["correctness"][k]
        same = ca["sha256"] == cb["sha256"]
        bit_identical &= same
        print(f"  {k:5} {'identical' if same else 'DIFFERENT'}   {ca['max_rel_err']:.1e} → {cb['max_rel_err']:.1e}")

    target = ratios.get("gemm_bf16_8192", 1.0)
    controls = [ratios[n] for n, r in a["results"].items() if r["group"] == "control" and n in ratios]
    worst_control = max(abs(r - 1) for r in controls)
    errs_ok = all(b["correctness"][k]["max_rel_err"] < 3 * max(a["correctness"][k]["max_rel_err"], 1e-6)
                  for k in a["correctness"])
    print(f"\nBF16 GEMM speedup {target:.2f}x, largest control drift {worst_control:.1%}")
    if not errs_ok:
        verdict = "PROBLEM: results got numerically worse - do not trust the unlocked card"
    elif worst_control > 0.07:
        verdict = "INCONCLUSIVE: control tests moved >7%, so clocks/power/thermals changed between runs"
    elif target >= 1.25:
        verdict = "UNLOCKED: tensor-core FP16/BF16 rate went up, controls flat"
    elif target <= 1.07:
        verdict = "NOT UNLOCKED: BF16 throughput unchanged"
    else:
        verdict = "PARTIAL/UNCLEAR: some gain, smaller than an unlock should give"
    print("VERDICT:", verdict)
    if not bit_identical:
        print("(hashes differ: expected only if the driver/torch/cuBLAS changed or cuBLAS picked a new kernel)")


if __name__ == "__main__":
    if len(sys.argv) == 3 and sys.argv[1] == "run":
        run(sys.argv[2])
    elif len(sys.argv) == 4 and sys.argv[1] == "compare":
        compare(sys.argv[2], sys.argv[3])
    else:
        sys.exit(__doc__)

Suspend and resume

Not tested

Anything else

Report put together with Claude Code on the card owner's behalf; all logs and numbers come from this machine.

Originally created by @dansolombrino on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/61 ### Result Unlocked, and FP16/BF16 got faster ### Card NVIDIA-branded GeForce RTX 3080 Ti 12 GB (subsystem `10de:1535`, GPU part number `2208-225-A1`, i.e. GA102-225), unmodified. Different board from #59 (HP OEM, subsystem `103c:88b8`) and from #28 (GA102-250, `10de:2205`). ### PCI IDs ```text 0000:08:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3080 Ti] [10de:2208] (rev a1) 0000:08:00.1 Audio device [0403]: NVIDIA Corporation GA102 High Definition Audio Controller [10de:1aef] (rev a1) ``` ### VBIOS version 00000000:08:00.0, 94.02.71.80.07 ### Is the card modified? Stock ### Distribution Ubuntu 24.04.4 LTS (bare metal) ### Kernel 6.8.0-147-generic ### NVIDIA driver 595.91.07, open kernel modules (`nvidia-driver-595-server-open` / `nvidia-dkms-595-server-open` from the Ubuntu archive) ### Initramfs generator initramfs-tools ### gpu-unlock version and install method `af28cbb`, `make install-deb`, unmodified. Note re #59: `make install-deb` worked as-is on stock Ubuntu 24.04 here. `apt-get build-dep` satisfied `dh-sequence-dkms` with `dh-dkms 3.0.11-1ubuntu13` from **noble/universe**, which does ship `/usr/share/perl5/Debian/Debhelper/Sequence/dkms.pm`; `dkms` stayed at the stock `3.0.11-1ubuntu13`. So the failure in #59 may come down to the `universe` component not being enabled in that VM. ### Kernel command line BOOT_IMAGE=/vmlinuz-6.8.0-147-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro gpu_unlock.targets=all ### Setup - Single GPU, bare metal, AMD platform, legacy BIOS boot (no EFI, so no Secure Boot). - The 3080 Ti is the only VGA device, so it is also the boot-console card; no monitor attached (headless, used over SSH). - Stock 350 W power limit (= default = max). Every test below, before and after, runs at the 350 W power cap. - `gpu_unlock.resume` left at its default. - First boot after installation unlocked the card with no errors; `nvidia` bound it normally afterwards. ### Kernel log ```text Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: loading out-of-tree module taints kernel. Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: module verification failed: signature and/or required key missing - tainting kernel Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM chain: pos=0x0 data=0x52494350 bytes=65024 type=0x0 last=0 Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM chain: pos=0xfe00 data=0x52494350 bytes=92672 type=0x3 last=0 Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM chain: pos=0x26800 data=0x5344504e bytes=22016 type=0xe0 last=0 Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM chain: pos=0x2be00 data=0x5344504e bytes=383488 type=0xe0 last=128 Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM expansion: base=0xfe00 ext=0x26800 adjust=0x16a00 Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM BIT: offset=0x1b0 size=12 stride=6 tokens=18 adjust=0x16a00 Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: ROM ucode table: offset=0x895f1 version=1 header=6 stride=6 entries=16 Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: FWSEC descriptor: offset=0x433b8 ROM_bytes=1048576 header=0x4ac0301 Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: FWSEC geometry: image_off=0x43864 size=0xea00 imem=0xe200 va=0x0 pa=0x0 dmem=0x800 pa=0x0 pkc=0x5a4 interface=0x1c engine=0x400 ucode=9 signatures=3 versions=0x7 bytes=1152 Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: FWSEC interface: offset=0x1c version=1 header=4 stride=8 entries=2 FRTS=0x2ffee0000 Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: FWSEC mapper: version=3 size=64 cmd_offset=0x7c0 cmd_size=64 Oct 24 18:59:25 rig-3080-ti kernel: gpu_unlock: FWSEC signature selection: versions=0x7 fuse_version=2 sig_bytes=384 Oct 24 18:59:25 rig-3080-ti kernel: pci 0000:08:00.0: gpu_unlock: unlocked ``` ### Benchmark before and after torch 2.11.0+cu128 (cuBLAS / cuDNN / FlashAttention via SDPA), driver 595.91.07, 350 W, no clock lock. Dense 8192³ GEMM, FP32 accumulation (`allow_fp16_reduced_precision_reduction` and `allow_bf16_reduced_precision_reduction` disabled), median of 7 samples of ~0.6 s each after 1.5 s warmup. | Input | Before | After | Gain | | ----- | ------ | ----- | ---- | | FP16 | 70.2 | 113.7 | +62% | | BF16 | 72.0 | 117.6 | +63% | | TF32 | 37.7 | 63.1 | +67% | The full suite also ran workloads built on the same instructions, plus **controls the unlock should not touch** (FP16 GEMM with FP16 accumulation, FP32 SIMT GEMM, INT8 `torch._int_mm`, 1 GiB device copy) to rule out clock/power/thermal differences between the two boots: | Test | Before | After | Ratio | | ---- | ------ | ----- | ----- | | GEMM BF16 4096³ (TFLOPS) | 70.3 | 120.9 | 1.72x | | GEMM FP16 4096³ (TFLOPS) | 69.6 | 117.4 | 1.69x | | FlashAttention BF16, B8 H16 S4096 D128 (TFLOPS) | 70.0 | 110.6 | 1.58x | | FlashAttention FP16, same shape (TFLOPS) | 68.9 | 108.3 | 1.57x | | conv2d 3×3 BF16, 32×256×64×64, channels_last (TFLOPS) | 73.3 | 124.7 | 1.70x | | FFN block BF16, 8192 tok, 4096→16384→4096 (TFLOPS) | 69.3 | 116.4 | 1.68x | | *control:* GEMM FP16 w/ FP16 accumulation 8192³ (TFLOPS) | 117.1 | 117.3 | 1.00x | | *control:* GEMM FP32 SIMT 4096³ (TFLOPS) | 23.6 | 23.6 | 1.00x | | *control:* GEMM INT8 8192³ (TOPS) | 66.0 | 65.8 | 1.00x | | *control:* device copy 1 GiB (GB/s) | 824.2 | 824.4 | 1.00x | Observations: - Run-to-run noise, from two "before" runs a few minutes apart: ≤1.2% on every test. - All controls stayed within 0.3%, so the gain isn't a clock/power artifact. - The unlocked BF16/FP16-with-FP32-accumulation rate lands on the FP16-with-FP16-accumulation rate (~117 TFLOPS), which was never half-rate. That's what you'd expect if the full-rate path is now the limit. - The card is power-capped in both states. After the unlock the GEMMs run at ~1500–1700 MHz instead of ~1750–1920 MHz at the same 350 W, so 350 W, not the issue rate, is now the ceiling. - Correctness: seeded 2048² BF16, FP16 and TF32 matmuls gave **bit-identical output** (SHA-256) before and after, with unchanged max relative error vs an FP64 reference (2.2e-3 / 2.7e-4 / 3.2e-4). - Caveat: "before" was taken on 6.8.0-146 and "after" on 6.8.0-147. unattended-upgrades had installed 147 earlier, and the reboot for the unlock activated it. Same driver, torch and cuBLAS; the flat controls and identical hashes suggest the kernel change didn't matter. <details> <summary>Raw comparison output</summary> ```text A = before-1 (2026-10-24 18:08:51, gpu_unlock loaded: False) B = after (2026-10-24 20:01:15, gpu_unlock loaded: True) NOTE: kernel differs: 6.8.0-146-generic -> 6.8.0-147-generic test A B unit B/A clk A→B expected gemm_bf16_8192 71.95 117.59 TFLOPS 1.63x 1785→1515 up a lot (~1.3-2x) gemm_fp16_8192 70.21 113.68 TFLOPS 1.62x 1755→1470 up a lot (~1.3-2x) gemm_tf32_8192 37.74 63.07 TFLOPS 1.67x 1890→1620 up a lot (~1.3-2x) gemm_bf16_4096 70.31 120.86 TFLOPS 1.72x 1920→1695 up a lot (~1.3-2x) gemm_fp16_4096 69.58 117.41 TFLOPS 1.69x 1905→1665 up a lot (~1.3-2x) attn_flash_bf16 69.98 110.59 TFLOPS 1.58x 1890→1680 up somewhat attn_flash_fp16 68.90 108.31 TFLOPS 1.57x 1860→1650 up somewhat conv3x3_bf16 73.30 124.69 TFLOPS 1.70x 1845→1605 up somewhat mlp_prefill_bf16 69.34 116.37 TFLOPS 1.68x 1785→1560 up somewhat gemm_fp16acc16_8192 117.05 117.33 TFLOPS 1.00x 1530→1545 flat (±5%) gemm_fp32_simt_4096 23.60 23.57 TFLOPS 1.00x 1605→1605 flat (±5%) gemm_int8_8192 65.95 65.77 TOPS 1.00x 1665→1665 flat (±5%) mem_copy_1GiB 824.16 824.36 GB/s 1.00x 1980→1980 flat (±5%) correctness (bit-exact hash A vs B, rel err vs FP64): bf16 identical 2.2e-03 → 2.2e-03 fp16 identical 2.7e-04 → 2.7e-04 tf32 identical 3.2e-04 → 3.2e-04 BF16 GEMM speedup 1.63x, largest control drift 0.3% VERDICT: UNLOCKED: tensor-core FP16/BF16 rate went up, controls flat ``` </details> <details> <summary>Benchmark script (<code>unlock_bench.py run &lt;label&gt;</code> / <code>compare a.json b.json</code>)</summary> ```python """Before/after benchmark for gpu-unlock (FP16/BF16 tensor-core rate unlock). python unlock_bench.py run <label> -> results/<label>.json python unlock_bench.py compare <a.json> <b.json> Three groups of tests: target - FP16/BF16/TF32 tensor-core work with FP32 accumulation. This is what the unlock doubles, so these should go up a lot. workload - real kernels built on the same instructions (attention, conv). Should go up, by less. control - work the unlock does not touch (FP16-accumulate GEMM, FP32 CUDA cores, INT8, memory bandwidth). Should stay flat; if they move, clocks/power/thermals changed and the comparison is suspect. Plus a correctness check: seeded matmuls hashed bit-for-bit and checked against an FP64 reference. """ import hashlib, json, os, platform, statistics, subprocess, sys, threading, time from pathlib import Path import torch import torch.nn.functional as F import pynvml SAMPLES = 7 # timed samples per test, median reported SAMPLE_SECONDS = 0.6 # target duration of one sample WARMUP_SECONDS = 1.5 RESULTS = Path(__file__).resolve().parent / "results" def sh(cmd): try: return subprocess.run(cmd, shell=True, capture_output=True, text=True, timeout=30).stdout.strip() except Exception as e: return f"<error: {e}>" # --- telemetry --------------------------------------------------------------- class Telemetry: """Samples SM clock, power and temperature in the background during a test.""" def __init__(self, handle, period=0.1): self.h, self.period, self.rows, self._stop = handle, period, [], threading.Event() def __enter__(self): self.rows, self._stop = [], threading.Event() self.t = threading.Thread(target=self._run, daemon=True) self.t.start() return self def _run(self): while not self._stop.is_set(): self.rows.append(( pynvml.nvmlDeviceGetClockInfo(self.h, pynvml.NVML_CLOCK_SM), pynvml.nvmlDeviceGetPowerUsage(self.h) / 1000, pynvml.nvmlDeviceGetTemperature(self.h, pynvml.NVML_TEMPERATURE_GPU), pynvml.nvmlDeviceGetCurrentClocksThrottleReasons(self.h), )) time.sleep(self.period) def __exit__(self, *exc): self._stop.set() self.t.join() def summary(self): if not self.rows: return {} clk, pwr, tmp, thr = zip(*self.rows) reasons = 0 for r in thr: reasons |= r names = { pynvml.nvmlClocksThrottleReasonSwPowerCap: "power_cap", pynvml.nvmlClocksThrottleReasonHwSlowdown: "hw_slowdown", pynvml.nvmlClocksThrottleReasonSwThermalSlowdown: "sw_thermal", pynvml.nvmlClocksThrottleReasonHwThermalSlowdown: "hw_thermal", } return { "sm_clock_mhz": statistics.median(clk), "power_w": statistics.median(pwr), "temp_c": max(tmp), "throttle": sorted(n for bit, n in names.items() if reasons & bit), } # --- timing ------------------------------------------------------------------ def time_op(fn): """Median seconds per call of fn, with warmup and auto-calibrated batch size.""" t0 = time.perf_counter() while time.perf_counter() - t0 < WARMUP_SECONDS: fn() torch.cuda.synchronize() s, e = torch.cuda.Event(enable_timing=True), torch.cuda.Event(enable_timing=True) s.record(); fn(); e.record(); torch.cuda.synchronize() iters = max(1, int(SAMPLE_SECONDS / (s.elapsed_time(e) / 1e3))) per_call = [] for _ in range(SAMPLES): s.record() for _ in range(iters): fn() e.record(); torch.cuda.synchronize() per_call.append(s.elapsed_time(e) / 1e3 / iters) return statistics.median(per_call), (max(per_call) - min(per_call)) / statistics.median(per_call) class matmul_flags: """Temporarily set torch matmul precision knobs.""" def __init__(self, tf32=False, fp16_acc=False): self.want = {"allow_tf32": tf32, "allow_fp16_accumulation": fp16_acc, "allow_fp16_reduced_precision_reduction": False, "allow_bf16_reduced_precision_reduction": False} def __enter__(self): m = torch.backends.cuda.matmul self.old = {k: getattr(m, k) for k in self.want if hasattr(m, k)} for k in self.old: setattr(m, k, self.want[k]) torch.backends.cudnn.allow_tf32 = self.want["allow_tf32"] def __exit__(self, *exc): for k, v in self.old.items(): setattr(torch.backends.cuda.matmul, k, v) # --- tests ------------------------------------------------------------------- # Each returns (fn, flop_or_byte_count, unit, flags). def gemm(n, dtype, tf32=False, fp16_acc=False): a = torch.randn(n, n, device="cuda", dtype=dtype) b = torch.randn(n, n, device="cuda", dtype=dtype) return (lambda: a @ b), 2 * n**3, "TFLOPS", matmul_flags(tf32=tf32, fp16_acc=fp16_acc) def int8_gemm(n): a = torch.randint(-128, 127, (n, n), device="cuda", dtype=torch.int8) b = torch.randint(-128, 127, (n, n), device="cuda", dtype=torch.int8) return (lambda: torch._int_mm(a, b)), 2 * n**3, "TOPS", matmul_flags() def attention(dtype, b=8, h=16, s=4096, d=128): q, k, v = (torch.randn(b, h, s, d, device="cuda", dtype=dtype) for _ in range(3)) def fn(): with torch.nn.attention.sdpa_kernel(torch.nn.attention.SDPBackend.FLASH_ATTENTION): F.scaled_dot_product_attention(q, k, v) return fn, 4 * b * h * s * s * d, "TFLOPS", matmul_flags() def conv(dtype, n=32, c=256, hw=64, k=3): x = torch.randn(n, c, hw, hw, device="cuda", dtype=dtype).to(memory_format=torch.channels_last) w = torch.randn(c, c, k, k, device="cuda", dtype=dtype).to(memory_format=torch.channels_last) torch.backends.cudnn.benchmark = True return (lambda: F.conv2d(x, w, padding=k // 2)), 2 * n * c * c * k * k * hw * hw, "TFLOPS", matmul_flags() def mlp_block(dtype, tokens=8192, d=4096): """Transformer FFN as in LLM prefill: up-proj, GELU, down-proj.""" x = torch.randn(tokens, d, device="cuda", dtype=dtype) w1 = torch.randn(d, 4 * d, device="cuda", dtype=dtype) / d**0.5 w2 = torch.randn(4 * d, d, device="cuda", dtype=dtype) / d**0.5 return (lambda: F.gelu(x @ w1) @ w2), 2 * 2 * tokens * d * 4 * d, "TFLOPS", matmul_flags() def mem_copy(mib=1024): src = torch.empty(mib * 2**20, device="cuda", dtype=torch.uint8) dst = torch.empty_like(src) return (lambda: dst.copy_(src)), 2 * src.numel(), "GB/s", matmul_flags() TESTS = [ # name, group, factory ("gemm_bf16_8192", "target", lambda: gemm(8192, torch.bfloat16)), ("gemm_fp16_8192", "target", lambda: gemm(8192, torch.float16)), ("gemm_tf32_8192", "target", lambda: gemm(8192, torch.float32, tf32=True)), ("gemm_bf16_4096", "target", lambda: gemm(4096, torch.bfloat16)), ("gemm_fp16_4096", "target", lambda: gemm(4096, torch.float16)), ("attn_flash_bf16", "workload", lambda: attention(torch.bfloat16)), ("attn_flash_fp16", "workload", lambda: attention(torch.float16)), ("conv3x3_bf16", "workload", lambda: conv(torch.bfloat16)), ("mlp_prefill_bf16", "workload", lambda: mlp_block(torch.bfloat16)), ("gemm_fp16acc16_8192", "control", lambda: gemm(8192, torch.float16, fp16_acc=True)), ("gemm_fp32_simt_4096", "control", lambda: gemm(4096, torch.float32)), ("gemm_int8_8192", "control", lambda: int8_gemm(8192)), ("mem_copy_1GiB", "control", lambda: mem_copy()), ] def correctness(): """Bit-exact hashes of seeded matmuls, plus max relative error vs FP64.""" out = {} g = torch.Generator(device="cpu").manual_seed(1234) a64 = torch.randn(2048, 2048, generator=g, dtype=torch.float64) b64 = torch.randn(2048, 2048, generator=g, dtype=torch.float64) for name, dtype, tf32 in [("bf16", torch.bfloat16, False), ("fp16", torch.float16, False), ("tf32", torch.float32, True)]: with matmul_flags(tf32=tf32): a, b = a64.to(dtype), b64.to(dtype) c = (a.cuda() @ b.cuda()).cpu() ref = a.double() @ b.double() rel = ((c.double() - ref).abs().max() / ref.abs().max()).item() out[name] = {"sha256": hashlib.sha256(c.contiguous().view(torch.uint8).numpy().tobytes()).hexdigest()[:16], "max_rel_err": rel} return out def environment(handle): unlock_lines = sh("journalctl -k -b --no-pager 2>/dev/null | grep -i gpu_unlock | tail -20") return { "timestamp": time.strftime("%Y-%m-%d %H:%M:%S"), "host": platform.node(), "kernel": platform.release(), "cmdline": Path("/proc/cmdline").read_text().strip(), "gpu_unlock_module_loaded": Path("/sys/module/gpu_unlock").exists(), "gpu_unlock_kernel_log": unlock_lines.splitlines(), "gpu": torch.cuda.get_device_name(0), "pci_id": sh("lspci -nn -d 10de: | grep -E 'VGA|3D' | grep -o '10de:[0-9a-f]*' | head -1"), "driver": pynvml.nvmlSystemGetDriverVersion(), "torch": torch.__version__, "cuda": torch.version.cuda, "cudnn": torch.backends.cudnn.version(), "power_limit_w": pynvml.nvmlDeviceGetPowerManagementLimit(handle) / 1000, "max_sm_clock_mhz": pynvml.nvmlDeviceGetMaxClockInfo(handle, pynvml.NVML_CLOCK_SM), "other_gpu_processes": len(pynvml.nvmlDeviceGetComputeRunningProcesses(handle)), } def run(label): pynvml.nvmlInit() handle = pynvml.nvmlDeviceGetHandleByIndex(0) env = environment(handle) print(f"{env['gpu']} ({env['pci_id']}) driver {env['driver']} torch {env['torch']}") print(f"gpu_unlock loaded: {env['gpu_unlock_module_loaded']} cmdline: {env['cmdline']}") if env["other_gpu_processes"]: print(f"WARNING: {env['other_gpu_processes']} other process(es) are using the GPU; numbers will be noisy") print(f"\n{'test':22} {'group':9} {'result':>14} {'spread':>7} {'SM MHz':>7} {'W':>5} {'°C':>4} throttle") tel = Telemetry(handle) results = {} for name, group, factory in TESTS: fn, work, unit, flags = factory() with flags, tel: secs, spread = time_op(fn) value = work / secs / (1e12 if unit in ("TFLOPS", "TOPS") else 1e9) results[name] = {"group": group, "value": value, "unit": unit, "spread": spread, **tel.summary()} r = results[name] print(f"{name:22} {group:9} {value:8.2f} {unit:6} {spread:6.1%} {r['sm_clock_mhz']:7.0f} " f"{r['power_w']:5.0f} {r['temp_c']:4} {','.join(r['throttle']) or '-'}") del fn torch.cuda.empty_cache() corr = correctness() print("\ncorrectness:", ", ".join(f"{k} {v['sha256']} (rel err {v['max_rel_err']:.1e})" for k, v in corr.items())) RESULTS.mkdir(exist_ok=True) path = RESULTS / f"{label}.json" path.write_text(json.dumps({"label": label, "env": env, "results": results, "correctness": corr}, indent=2)) print(f"\nsaved {path}") # --- comparison -------------------------------------------------------------- EXPECT = {"target": "up a lot (~1.3-2x)", "workload": "up somewhat", "control": "flat (±5%)"} def compare(pa, pb): a, b = (json.loads(Path(p).read_text()) for p in (pa, pb)) print(f"A = {a['label']} ({a['env']['timestamp']}, gpu_unlock loaded: {a['env']['gpu_unlock_module_loaded']})") print(f"B = {b['label']} ({b['env']['timestamp']}, gpu_unlock loaded: {b['env']['gpu_unlock_module_loaded']})") for key in ("driver", "torch", "power_limit_w", "kernel"): if a["env"][key] != b["env"][key]: print(f"NOTE: {key} differs: {a['env'][key]} -> {b['env'][key]}") print(f"\n{'test':22} {'A':>9} {'B':>9} {'unit':6} {'B/A':>6} {'clk A→B':>11} expected") ratios = {} for name, ra in a["results"].items(): rb = b["results"].get(name) if not rb: continue ratios[name] = rb["value"] / ra["value"] print(f"{name:22} {ra['value']:9.2f} {rb['value']:9.2f} {ra['unit']:6} {ratios[name]:5.2f}x" f" {ra['sm_clock_mhz']:5.0f}→{rb['sm_clock_mhz']:<5.0f} {EXPECT[ra['group']]}") print("\ncorrectness (bit-exact hash A vs B, rel err vs FP64):") bit_identical = True for k, ca in a["correctness"].items(): cb = b["correctness"][k] same = ca["sha256"] == cb["sha256"] bit_identical &= same print(f" {k:5} {'identical' if same else 'DIFFERENT'} {ca['max_rel_err']:.1e} → {cb['max_rel_err']:.1e}") target = ratios.get("gemm_bf16_8192", 1.0) controls = [ratios[n] for n, r in a["results"].items() if r["group"] == "control" and n in ratios] worst_control = max(abs(r - 1) for r in controls) errs_ok = all(b["correctness"][k]["max_rel_err"] < 3 * max(a["correctness"][k]["max_rel_err"], 1e-6) for k in a["correctness"]) print(f"\nBF16 GEMM speedup {target:.2f}x, largest control drift {worst_control:.1%}") if not errs_ok: verdict = "PROBLEM: results got numerically worse - do not trust the unlocked card" elif worst_control > 0.07: verdict = "INCONCLUSIVE: control tests moved >7%, so clocks/power/thermals changed between runs" elif target >= 1.25: verdict = "UNLOCKED: tensor-core FP16/BF16 rate went up, controls flat" elif target <= 1.07: verdict = "NOT UNLOCKED: BF16 throughput unchanged" else: verdict = "PARTIAL/UNCLEAR: some gain, smaller than an unlock should give" print("VERDICT:", verdict) if not bit_identical: print("(hashes differ: expected only if the driver/torch/cuBLAS changed or cuBLAS picked a new kernel)") if __name__ == "__main__": if len(sys.argv) == 3 and sys.argv[1] == "run": run(sys.argv[2]) elif len(sys.argv) == 4 and sys.argv[1] == "compare": compare(sys.argv[2], sys.argv[3]) else: sys.exit(__doc__) ``` </details> ### Suspend and resume Not tested ### Anything else Report put together with Claude Code on the card owner's behalf; all logs and numbers come from this machine.
Author
Owner

@jmikedupont2 commented on GitHub (Oct 25, 2026):

thank you

<!-- gh-comment-id:6392955712 --> @jmikedupont2 commented on GitHub (Oct 25, 2026): thank you
bsakaguchi 2026-10-30 04:54:38 +07:00
Author
Owner

@Zagitta commented on GitHub (Oct 27, 2026):

Thanks for the report! Success reports now live in one place: https://github.com/Zagitta/gpu-unlock/discussions/238. Closing this so the issue tracker stays focused on cards where the unlock fails. Your numbers stay searchable here under the success-report label. If something stops working later, please open an unlock failure issue.

<!-- gh-comment-id:6454890930 --> @Zagitta commented on GitHub (Oct 27, 2026): Thanks for the report! Success reports now live in one place: https://github.com/Zagitta/gpu-unlock/discussions/238. Closing this so the issue tracker stays focused on cards where the unlock fails. Your numbers stay searchable here under the `success-report` label. If something stops working later, please open an unlock failure issue.
Sign in to join this conversation.
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
Zagitta/gpu-unlock#43
No description provided.