ARTIFACT // DIAGNOSE-SM120-AND-GFX1201.SH (SHELL)
Blackwell (`sm_120`) & RDNA 4 (`gfx1201`) Kernel, PCIe Gen5 AER & ROCm Diagnostic Script (diagnose-sm120-and-gfx1201.sh)
Detects missing sm_120 kernels in PyTorch/CUDA, PCIe 5.0 riser AER / Xid 79 bus drops on RTX 5090/5060 Ti, and invalid HSA_OVERRIDE_GFX_VERSION settings on AMD RX 9070 XT (gfx1201).
[KEY VERIFIED TAKEAWAY / TL;DR]This reproducible configuration artifact "Blackwell (`sm_120`) & RDNA 4 (`gfx1201`) Kernel, PCIe Gen5 AER & ROCm Diagnostic Script" (diagnose-sm120-and-gfx1201.sh, SHELL) is paired with Tinker AI Lab's hardware-verified guide "blackwell-sm120-no-kernel-image-and-rdna4-gfx1201-rocm-troubleshooting". It exposes 2 customizable browser variables (EXPECTED_SM_ARCH=12.0, EXPECTED_GFX_TARGET=gfx1201) with loopback-first security defaults.
04 // DIAGNOSISAPI & Deployment Troubleshooting· Verified: 2026-10-28
Browse All 42 Artifacts →diagnose-sm120-and-gfx1201.sh
View Paired Guide →Blackwell (`sm_120`) & RDNA 4 (`gfx1201`) Kernel, PCIe Gen5 AER & ROCm Diagnostic Script
Detects missing sm_120 kernels in PyTorch/CUDA, PCIe 5.0 riser AER / Xid 79 bus drops on RTX 5090/5060 Ti, and invalid HSA_OVERRIDE_GFX_VERSION settings on AMD RX 9070 XT (gfx1201).
Customizable Variables (Saved in Browser)
UTF-8 Encoded · Live Client-Side Compilation
#!/usr/bin/env bash
# Tinker AI — Blackwell (sm_120) & RDNA 4 (gfx1201) Compute Doctor (Guide #28)
set -euo pipefail
SM_TARGET="12.0"
GFX_TARGET="gfx1201"
echo "=== [1/4] NVIDIA Blackwell ($SM_TARGET) Driver & PCIe Link Audit ==="
if command -v nvidia-smi >/dev/null 2>&1; then
nvidia-smi --query-gpu=name,driver_version,compute_cap,pcie.link.gen.current,pcie.link.gen.max,power.draw,power.limit --format=csv
else
echo "No nvidia-smi detected; skipping NVIDIA check."
fi
echo "=== [2/4] PyTorch / CUDA sm_120 Kernel Image Verification ==="
if command -v python3 >/dev/null 2>&1; then
python3 -c "
import sys
try:
import torch
arches = torch.cuda.get_arch_list()
print('PyTorch:', torch.__version__, '| CUDA:', torch.version.cuda, '| Arches:', arches)
if not any('12.0' in a or '120' in a for a in arches):
print('[FAIL] PyTorch build lacks sm_120! Install CUDA 12.8 (+cu128) wheels or set TORCH_CUDA_ARCH_LIST="12.0+PTX".')
except Exception as e:
print('Torch check skipped:', e)
"
fi
echo "=== [3/4] Kernel PCIe 5.0 AER & NVRM Xid 79 Bus Drop Audit ==="
dmesg -T 2>/dev/null | grep -iE "AER|Xid|fallen off the bus|amdgpu.*error" | tail -n 15 || echo "[OK] Zero PCIe AER or GPU Xid errors found."
echo "=== [4/4] AMD RDNA 4 ($GFX_TARGET) ROCm Override Trap Check ==="
if [ -n "${HSA_OVERRIDE_GFX_VERSION:-}" ]; then
echo "[WARN] HSA_OVERRIDE_GFX_VERSION=$HSA_OVERRIDE_GFX_VERSION is set! On $GFX_TARGET (RDNA 4), spoofing gfx1100 causes INVALID_ISA crashes. Run: unset HSA_OVERRIDE_GFX_VERSION"
else
echo "[OK] HSA_OVERRIDE_GFX_VERSION is not polluting the environment."
fi
PARAMETER SPECIFICATION // 参数化变量规范说明表
Customizable Parameter Reference for diagnose-sm120-and-gfx1201.sh
This SHELL artifact exposes 2 template variables compiled client-side in your browser.
| Template Token | Parameter Description | Verified Default | Example Format |
|---|---|---|---|
{{EXPECTED_SM_ARCH}} | Target NVIDIA Compute Capability | 12.0 | 12.0 (Blackwell RTX 50-series) |
{{EXPECTED_GFX_TARGET}} | Target AMD RDNA 4 ISA Name | gfx1201 | gfx1201 (RX 9070 XT / 9070) |
PAIRED HARDWARE MANIFEST // 配套实测环境与边界记录
Verified Environment for "Blackwell (sm_120) & RDNA 4 (gfx1201) GPU Troubleshooting: Fixing "No Kernel Image Is Available", PCIe 5.0 Riser Xid 79 & ROCm ISA Crashes"
Tested Hardware & OS
NVIDIA RTX 5090 32GB / RTX 5060 Ti 16GB (`sm_120`) & AMD Radeon RX 9070 XT 16GB (`gfx1201`) · Ubuntu 24.04.2 LTS (Kernel 6.13.5)
Pinned Stack & Model Versions
NVIDIA Driver 570.133.07 + CUDA 12.8PyTorch 2.7.0+cu128 / vLLM 0.8.2ROCm 6.3.4 / Mesa 25.0.2 RADVllama.cpp b4910
Offline Boundary (100% Local Terminal Diagnostics)
All kernel ring-buffer checks (`dmesg`), `nvidia-smi` power locks, and compiler flags run locally.
Known Operational Limits & Failure Modes
- Legacy Docker images built on CUDA 12.1–12.6 without PTX JIT cannot run custom CUTLASS/FlashAttention kernels on `sm_120` without upgrading the base image to CUDA 12.8 (`+cu128`).
- Unshielded PCIe 4.0 vertical GPU riser cables cannot sustain 32 GT/s PCIe 5.0 signaling on RTX 5090/5080; you must lock PCIe Gen4 in BIOS or replace the riser.
DEPLOYMENT CHECKLIST // 配置落地核验步骤
3-Step Verification Checklist After Deploying diagnose-sm120-and-gfx1201.sh
- Verified `torch.cuda.get_arch_list()` includes `sm_120` (CUDA 12.8+) inside the target container.
- Checked `dmesg -T | grep -iE "AER|Xid"` shows zero PCIe physical layer errors under load (locked Gen4 in BIOS if using a riser).
- Confirmed `HSA_OVERRIDE_GFX_VERSION` is unset on AMD RX 9070 XT (`gfx1201`) hosts.