Metadata-Version: 2.4
Name: pantheon-gpu
Version: 1.2.5
Summary: GPU stress testing and diagnostics for NVIDIA CUDA and AMD ROCm
License: Apache-2.0
Project-URL: Homepage, https://pantheongpu.com
Project-URL: Source, https://github.com/pantheongpu/pantheon
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: psutil
Requires-Dist: pandas
Requires-Dist: numpy
Requires-Dist: nvidia-ml-py
Provides-Extra: reports
Requires-Dist: openpyxl; extra == "reports"
Dynamic: license-file

# Pantheon: Universal GPU Stress & Diagnostics Suite

[![CI](https://github.com/pantheongpu/pantheon/actions/workflows/ci.yml/badge.svg)](https://github.com/pantheongpu/pantheon/actions/workflows/ci.yml)
[![Release](https://img.shields.io/github/v/release/pantheongpu/pantheon)](https://github.com/pantheongpu/pantheon/releases)
[![PyPI](https://img.shields.io/pypi/v/pantheon-gpu)](https://pypi.org/project/pantheon-gpu/)
[![License](https://img.shields.io/github/license/pantheongpu/pantheon)](LICENSE)

Pantheon is a cross-platform (CUDA/ROCm) stress testing tool designed to isolate and hammer specific GPU subsystems. Unlike generic benchmarks (Furmark, 3DMark), Pantheon allows you to test specific silicon limits.

## What it is, and what it isn't

- **It is** a set of stress workloads for NVIDIA (CUDA) and AMD (ROCm/HIP) GPUs that each target one subsystem (power draw, memory, caches, inference paths), and every run ends with a verdict per GPU (HEALTHY, WATCH, FAULT or INCOMPLETE) with the evidence behind it. See [Verdict](#verdict).
- **It isn't** a benchmark for ranking cards, and it does not replace vendor diagnostics. A passing run is evidence the GPU held up under that load for that long, not a guarantee.
- **It needs** a GPU with its driver and a compiler toolchain (the kernels are compiled on first use), or the CPU `MOCK` backend for development without a GPU.

## Try it

```bash
pipx install pantheon-gpu
pantheon --version
pantheon --test baseline_metrics --duration 10   # first run compiles the kernels, which can take a minute
```

Results are written to `results/` and `database/` in the current directory.

## Install

This repository is the source. To install a released version:

```bash
pipx install pantheon-gpu                     # PyPI
conda install -c conda-forge pantheon-gpu     # conda-forge
```

Either one installs a `pantheon` command. The [install guide](https://pantheongpu.com/getting-started/)
covers the apt and COPR repositories and the container image as well.

To check the GPUs of a self-hosted GitHub Actions runner before a job uses them:

```yaml
- uses: pantheongpu/gpu-health-check@v0
```

[Pantheon GPU Health Check](https://github.com/marketplace/actions/pantheon-gpu-health-check)
on the GitHub Marketplace lists its options.

## Integrations

[`integrations/`](integrations/) has files that put Pantheon where a cluster
already looks for the health of its nodes: a node check that answers with a
verdict and an exit code, a Slurm epilog and acceptance job, a check for NHC,
and a test for ReFrame.

## Requirements

### Running From Source

This repository is the source tree. It does not build installable packages or
a standalone executable; run the checked-out runner directly:

```bash
python3 pantheon.py --test baseline_metrics --duration 10
python3 pantheon.py --test tensor_virus --duration 60 --gpu 0
```

Pantheon auto-detects CUDA, ROCm/HIP, or mock mode at runtime. Do not pass
`--platform cuda` for normal use.

Kernels are compiled on first use, or explicitly:

```bash
make PLATFORM=CUDA      # NVIDIA
make PLATFORM=HIP       # AMD
make PLATFORM=MOCK      # CPU backend, no GPU required
```

### Compiling ahead of time

A site that installs Pantheon once for many nodes, a container image, or a
software stack such as EESSI can compile the workloads at install time and
ship them, so the nodes need the GPU driver and not the toolkit:

```bash
export PANTHEON_BUILD_CACHE_DIR=/opt/pantheon/builds   # where the binaries go
export PANTHEON_CUDA_ARCH=9.0                          # the cards' compute capability
pantheon --build-only --platform cuda
```

`--build-only` compiles every workload for the platform into the build cache
and exits. It needs the compiler (`nvcc` or `hipcc`) and no GPU. For AMD cards
set `TARGET_GFX` (for example `gfx942`) instead of `PANTHEON_CUDA_ARCH`. Repeat
the command per compute capability; each gets its own directory under the
cache. Some architectures (Hopper, Blackwell) have an `a` target with extra matrix
instructions: the build node asks `nvcc` whether it exists and names the
directory accordingly (`cuda-100a`), and a run node with no `nvcc` uses the
directory that is there.

At run time, set the same `PANTHEON_BUILD_CACHE_DIR` and `PANTHEON_PLATFORM=cuda`
(or `hip`) in the environment, for example in a module file. Pantheon then
takes the backend from the environment instead of looking for a compiler,
finds the binaries that match the card it runs on, and compiles nothing. The
CUDA binaries link the CUDA runtime statically, so only `libcuda` from the
driver is needed on the node.

### Runtime Dependencies
- **Hardware Drivers:** Latest NVIDIA or AMD Linux drivers for the target GPU.
- **Compiler:** CUDA `nvcc` for NVIDIA GPUs, or ROCm/HIP `hipcc` for AMD GPUs. Pantheon uses the local compiler to build GPU workload binaries for the current machine, unless they were compiled ahead of time (see above).
- **System tools:** `make` and a C++ compiler such as `g++`.
- **Linux compatibility:** Official x86-64 binaries are built in a `manylinux_2_28` environment and require GLIBC 2.28 or newer.

### Compiler Requirements
To run stress tests natively (and avoid **Mock Mode**), you must have the backend compiler for your specific GPU architecture installed:

#### For NVIDIA GPUs (CUDA)
**Linux (Ubuntu/Debian):**
```bash
sudo apt-get update
sudo apt-get install nvidia-cuda-toolkit
```

#### For AMD GPUs (ROCm/HIP)
**Linux (Ubuntu/Debian):**
```bash
sudo apt-get update
sudo apt-get install hipcc
```

## Quick Start
```bash
python3 pantheon.py --version

# Run a specific "Power Virus" test
python3 pantheon.py --test tensor_virus --duration 60

# Run a specific "VRM Cracker" test
python3 pantheon.py --test pulse_virus --duration 60

# Run the inference-path stress suite on GPU 0
 python3 pantheon.py --test inference --duration 60 --gpu 0 --mem 50

# Ten-minute health check with a verdict at the end
python3 pantheon.py --test quick
```

## Choosing GPUs

`--gpu` takes the numbers `nvidia-smi` shows: `--gpu 0`, `--gpu 0,2` or `--gpu all`, which is the default.

Pantheon tests only the cards its job has been given. If `CUDA_VISIBLE_DEVICES` is set, as a scheduler sets it when a job gets some of a machine's cards, `--gpu all` means the cards it lists, and asking for any other card by number is an error that says the card is hidden. The variable may name cards by number or by UUID, as CUDA accepts them.

Reports keep `nvidia-smi`'s numbers. A run with `CUDA_VISIBLE_DEVICES=2` tests one card and reports it as GPU 2, with that card's UUID, temperature and error counters, and leaves the hidden cards out of the report.

On NVIDIA each workload is started with only its own card visible, as device 0. A CUDA program told to use device 2 still opens a context on device 0 first, and on a machine testing every card at once, with each workload taking 99% of its card's memory, those contexts make allocations fail with "out of memory" on GPU 0. The four workloads that need other cards, `all_reduce`, `p2p_thrasher`, `p2p_matrix` and `nccl_all_reduce`, keep every card the job was given visible.

```bash
# A job that was given the third card of a four-card machine
CUDA_VISIBLE_DEVICES=2 python3 pantheon.py --test quick
```

On AMD, `HIP_VISIBLE_DEVICES` and `ROCR_VISIBLE_DEVICES` are not translated yet. Pantheon says so when either is set. Run it with every card of the machine visible.

## Ray tracing workload (rt_virus)

NVIDIA's OptiX headers are proprietary and not redistributable, so this tree
does not ship them and `rt_virus` builds a dummy kernel that reports
`SKIP` by default. To run the real workload on NVIDIA hardware, download the
[OptiX SDK](https://developer.nvidia.com/designworks/optix/download) (free
NVIDIA developer account required) and point `OPTIX_PATH` at its `include`
directory:

```bash
OPTIX_PATH=/opt/NVIDIA-OptiX-SDK-8.0.0/include python3 pantheon.py --test rt_virus --duration 60
```

The build cache keys on `OPTIX_PATH`, so setting or changing it triggers a
rebuild automatically. On AMD hardware, build with `ENABLE_HIPRT=1` instead,
which clones and builds HIP-RT itself.

## AI and inference workloads

The `inference`, `training` and `ai_auxiliary` suites exercise GPU execution
and memory patterns relevant to model serving. They are diagnostic workloads,
not model benchmarks: they load no weights, measure no model quality, and do
not replace an end-to-end benchmark such as vLLM or TensorRT-LLM.

```bash
python3 pantheon.py --test inference --duration 60 --gpu 0 --mem 50
```

See [`docs/ai_workloads.md`](docs/ai_workloads.md) for what each workload
stresses and what its reported rate does and does not mean.

## Hardware Counter Profiling

Add `--profile` to wrap each workload in the native vendor profiler:

```bash
python3 pantheon.py --test tensor_virus --duration 30 --gpu 0 --profile
```

`--profile` is an exhaustive diagnostic mode. Pantheon profiles every selected
workload and GPU, running GPUs serially to avoid profiler contention and to
keep the artifacts isolated. On NVIDIA it runs Nsight Compute (`ncu`) for
hardware counters and Nsight Systems (`nsys`) for a CUDA/NVTX timeline. On AMD
it uses `rocprofv3` to collect performance counters together with the HIP
runtime, kernel-dispatch, and memory-operation trace.

The default counter sets cover SM/CU occupancy and active blocks, instruction
pipeline and memory-operation mix, branch and memory-access efficiency,
scheduler stalls, L1/L2/cache behavior, DRAM traffic, and host/peer transfer
fabric indicators where the installed profiler exposes them. Each profile also
includes the RAS and PCIe reliability snapshots collected before and after the
workload.
Supported devices report ECC correctable and uncorrectable counts, memory
retirement state, and PCIe replay, CRC, TLP/DLLP, and fatal/non-fatal counters.
AMD profiles also collect exposed per-block RAS data and CPER firmware records.
Linux PCIe AER counters and new AER/poison events are included when the host
exposes them. Unsupported hardware is labeled unavailable rather than reported
as zero. One workload/GPU bundle is written below the timestamped run directory:

```text
results/<run-id>/profiles/<workload>/gpu<id>/
  profile_manifest.json
  time_series.csv
  hardware_counters.csv
  ras.json
  summary.json
  trace.*
```

`summary.xlsx` links each result to its bundle and includes the flattened
counter values. Pantheon refuses an explicit profile request when the required
vendor tools are unavailable, instead of silently running without profiler
artifacts.

### What a counter value describes

`--profile` does not limit the profiler's launch count, so one capture holds
the workload's stress kernel beside every fill, checksum and teardown kernel
around it. A counter reported for the whole workload would be meaningless, so
each value is the median across the launches of the **kernel that owned the
profiled runtime**, and the row records which kernel that was:

```text
Counter Kernel                tensor_virus_kernel(int, unsigned int *, int, int)
Counter Kernel Launches       50
Counter Kernel Runtime Share  98.7 %
```

Read a counter as a property of that kernel, not of the run. A low runtime
share means the profiler could not find a dominant kernel and the counters
describe only part of the work.

Attribution follows runtime rather than launch count, so a cheap helper
launched thousands of times cannot outvote the kernel doing the work.

A metric the profiler reports under two different units is split rather than
averaged together -- Nsight Compute emits `Memory Throughput` once as a
percentage of peak and once in byte/s, so both appear:

```text
Counter Memory Throughput [%]        68.38 %
Counter Memory Throughput [byte/s]   11218196555.16 byte/s
```

### Cost

Profiling replays every kernel, so it is far slower than a normal stress run.
Measured across 134 profiled and 62 unprofiled workloads on the same cards at
`--duration 300`: a median of **1212s profiled against 333s unprofiled, about
3.6x**. Budget roughly half a day for a full 46-workload suite on one GPU.

### Host memory

Nsight Compute stages device memory in **host** RAM while it replays kernels,
so a profiled run needs host memory comparable to the GPU memory in use. At
`--mem 99` that means the host should have appreciably more RAM than the card
has VRAM.

Rigs where VRAM approaches host RAM become unreachable partway through a
profiled suite -- SSH stops answering while the hypervisor still reports the
instance healthy. Measured across eleven cards, every rig whose VRAM at 99%
was below about 0.7x host RAM completed; the three above it did not, including
one with 96GB of VRAM on a 62GB host. If you cannot give the host that
headroom, run the suite without `--profile` rather than lowering `--mem`, which
would make the scores incomparable with everything else.

### Requirements and troubleshooting

Both vendor tools must be present: on NVIDIA that is `ncu` **and** `nsys`, and
Pantheon refuses the run if either is missing.

**Profiling requires administrative rights.** The NVIDIA driver ships with
`RmProfilingAdminOnly=1`, so an ordinary user gets almost no counters:

```text
ERR_NVGPUCTRPERM - The user does not have permission to access
NVIDIA GPU Performance Counters on the target device 0
```

Run the profiled workload as root, or clear the restriction in the driver
module and reload it.

**Nsight Compute must match the driver.** A build newer than the installed
driver installs and reports its version happily, then fails every capture:

```text
==ERROR== Nsight Compute failed to connect to the CUDA driver
          (stub libcuda.so[.1] on path?)
```

Install the package matching the CUDA version `nvidia-smi` reports -- for a
driver advertising CUDA 12.8, `cuda-nsight-compute-12-8`.

**`InterprocessLockFailed`** means `/tmp/nsight-compute-lock` is owned by
another user; a profiler run as an ordinary user leaves a lock a later root run
cannot take. Remove the file.

## Fault Maps

Console fault reporting is capped at a few lines per run so a widescale
corruption cannot flood the log. That keeps the console readable but means a
run reports an accurate error *count* and only a handful of error *locations*.

Memory workloads accept `--fault_map <file>` to record every failing address:

```bash
./build/memory_read 0 60 90 --verify --fault_map faults.csv
```

The file is self-describing CSV:

```text
# workload=memory_read gpu=0 init_pattern=2 init_pattern_name=crosstalk total_faults=3 recorded=3 capacity=4096
index,expected,actual,xor
1337,0xe76e5272,0xecc3ec9d,0x0badbeef
```

The `xor` column names the flipped bits, which is what distinguishes a single
defective cell from a stuck data lane: one bit position failing across many
unrelated addresses indicates shared structure, not a cell. Supported by
`memory_read`, `memory_write`, `atomic_virus`, `ras_validator`,
`memory_retention`, `march_test`, `memory_hammer`, and `galpat`
(`memory_read_agg` and `memory_write_agg` are aliases of the first two with a
different `--init_pattern`).

## Memory Diagnostics

The `diagnostics` suite looks for defective cells rather than measuring
bandwidth: `march_test`, `memory_hammer`, `galpat`, `memory_retention` and
`ras_validator`.

```bash
python3 pantheon.py --test diagnostics --duration 300 --gpu 0 --mem 90
```

See [`docs/memory_diagnostics.md`](docs/memory_diagnostics.md) for what each
one finds, how they compose as a funnel, the full `--init_pattern` table, and
the caveats that decide whether a result means anything.

## Reliability checks on every run

Pantheon collects lightweight before-and-after reliability snapshots for every
workload, even without `--profile`. Each result records a `RAS Status`, a
human-readable `RAS Error Delta`, and the path to its JSON report under
`results/<run-id>/reliability/<workload>/gpu<id>/ras.json`.

The snapshot covers NVIDIA ECC and PCIe error counters, AMD RAS and CPER
records where their management tools expose them, and Linux PCIe AER events.
`CLEAN` means supported counters did not change during the workload;
`WARNING` records new correctable or recoverable events; `ERROR` records new
uncorrectable, fatal, or poison events; and `UNAVAILABLE` means the platform
does not expose the relevant telemetry. Hardware counters and traces still
require `--profile`.

Profiler counter names can vary by GPU generation and driver/toolkit version.
Override or extend the default sets without editing the source:

```bash
# Replace the NVIDIA metric list entirely
PANTHEON_CUDA_METRICS="sm__throughput.avg.pct_of_peak_sustained_elapsed,dram__bytes_read.sum" \
  python3 pantheon.py --test memory_read --duration 30 --profile

# Add one AMD counter to Pantheon's default list
PANTHEON_HIP_METRICS_APPEND="CUSTOM_COUNTER_NAME" \
  python3 pantheon.py --test memory_write --duration 30 --profile
```

## Verdict

Every run ends with one word per GPU and the evidence for it:

```
VERDICT GPU 0, NVIDIA H100 80GB HBM3: WATCH  (thermally throttled on 2; correctable errors on 8)
  ! thermal: memory_read thermally throttled, GPU at 95 C, memory_read_agg thermally throttled, GPU at 94 C
  ! correctable errors on 8 workload(s): pcie.bad_tlp +9, pcie.lcrc +6
  note: PCIe link recovery events on 8 workload(s): link power-state cycling, not a fault
```

* **HEALTHY**: every workload completed, no error counter that matters moved,
  and nothing ran hot.
* **WATCH**: something deserves a second look: a thermal limit, a GPU at 90 C or
  memory at 95 C, correctable ECC or PCIe errors, an NVLink link that is down
  (see [NVLink](#nvlink)), or a workload that did not complete. One line per
  kind, worst first.
* **FAULT**: a memory diagnostic (`march_test`, `galpat`, `memory_hammer`,
  `memory_retention`, `memory_retention_bake`, `ras_validator`) failed, or an
  uncorrectable error was counted. Read the workload's log in `results/`.
* **INCOMPLETE**: nothing beyond the idle baseline completed.

PCIe link recovery counts are reported as a note, never held against the
card: they tick on every run on some healthy platforms. The verdict is also
written into the report under `verdicts`, with a structured `findings` block.

### NVLink

On a multi-GPU NVIDIA node Pantheon also reads, through NVML, how many NVLink
links each GPU has and how many are up, and on a node run by a fabric manager
whether the fabric finished starting. It prints one line at the start
(`NVLink: GPU 0,1,2,3,4,5,6,7: 18 of 18 links active`) and records both
snapshots under `interconnect` in the report. A card passes every test on its
own with a link down, so these are the cases that make the verdict WATCH, listed
as `interconnect`:

* a GPU has fewer links up than the other GPUs of the node that have the same
  number of links (17 of 18 beside seven with 18);
* a GPU has no link up, where the others are joined through an NVSwitch;
* a link went down during the run;
* the fabric has not completed, reports an error, or the driver reports
  degraded NVLink bandwidth.

These never make a FAULT: they have not yet been checked against a node with a
degraded link. The error counters of the links (CRC, replay, recovery) are
recorded with the RAS snapshot of each workload and are not judged. Without
`nvidia-ml-py`, or on a node without NVLink, none of this is available, and
`interconnect` in the report says which. Reading the links puts no load on them.
Of the workloads, `p2p_thrasher` and `all_reduce` exercise one pair of cards each,
`p2p_matrix` measures every GPU's transfers to all its peers, and `nccl_all_reduce`
runs one all-reduce across every selected GPU through NCCL (RCCL on AMD), the call a
training job makes. It is skipped, with the reason, where the library is not installed,
and its score has no threshold yet. A GPU whose slowest `p2p_matrix` transfer is under
85% of the median GPU's makes the verdict WATCH, and so does a `p2p_matrix` or
`nccl_all_reduce` run that gets wrong data or aborts: the test cannot say which GPU,
link or switch is at fault, so it is not a FAULT. The link and fabric readings and
`p2p_matrix` have been checked on healthy nodes only: an 8x V100 NVLink mesh and 8x H100
behind NVSwitch. NVSwitch on A100 and B200 has not been tried.

`--test quick` is the ten-minute version of this: idle baseline, memory read,
a march test, a retention check and one power-limited compute load.

## Interpretation of Results

The summary report (`results/<timestamp>/summary.xlsx`) contains detailed "Pro" metrics. Here is how to interpret them:

* **Efficiency:** Throughput per watt of average board power. Bandwidth workloads report `GB/s × 1024 / W` (MB/J), compute workloads `TFLOPS × 1000 / W` (GFLOP/J), and every other workload its raw unit per watt, so compare it only between runs of the same workload.
    * **Healthy:** Stays relatively constant throughout the run.
    * **Degraded:** If this drops significantly during a 1-hour burn-in, your silicon is "leaking" current (thermal runaway) or the VRMs are becoming inefficient due to heat.
* **PCIe Link:** Verifies the physical connection speed (e.g., `Gen4 x16`).
    * **Red Flag:** If it drops to `x8` or `Gen3` under load, check your riser cable, motherboard slot, or GPU mounting pressure.
* **Throttle Reason:** Tells you *why* performance is limited.
    * `Power`: **Normal.** The card hit its TDP limit (expected for viruses).
    * `Thermal`: **Critical.** The core is overheating (typically >83°C Edge or >110°C Junction). Check thermal paste.
    * `Power Brake`: The platform asserted its power-brake signal and forced the clock down.
    * `Idle`: The card was idle during the sample. `None` means no limit was reported and `N/A` that the driver could not say.
    * Several reasons can be reported together, joined with `|` (for example `Power|Thermal`).
* **Junction (Hotspot) vs. Edge:** * On newer AMD drivers, the primary temperature reported is the **Junction**. This is the absolute hottest single point on the silicon die. 
    * It is normal for Junction to be 15-25°C hotter than the traditional "Edge" average.
* **Max Mem Temp:** The hottest point on your VRAM (Memory/GDDR6X). Keep this under 100°C to avoid permanent damage.
* **Throughput (GB/s):**
    * For `memory_read` / `memory_write`, this should be within 90% of your card's theoretical max bandwidth.
    * Low throughput = Memory Controller instability or aggressive error correction (ECC) kicking in.

## Incremental Reports

For long `--test all` runs, Pantheon writes one atomic
`database/pantheon_report_<run>_<sequence>_<workload>_gpu<id>.json` file when
each workload finishes. These are complete workload records, not snapshots of
an active workload, so a results publisher can safely copy them while the
remaining queue is still running. The aggregate report is still written at the
end of the run. Reports marked `partial`, `failed`, or `incomplete` are
excluded by downstream importers.

## Memory type and vendor

Each GPU entry in a report carries `memory_type` (GDDR6, GDDR6X, GDDR7, HBM3,
...) and `memory_vendor` (Samsung, SK hynix, Micron, ...). On NVIDIA they are
read from the driver's own memory information table through its control
interface on `/dev/nvidiactl`, without root, the same data GPU-Z shows on
Windows. On AMD the vendor comes from `rocm-smi --showmemvendor` and the type
from `amd-smi static --vram` (matched to the card by PCI address); integrated
graphics report a type, such as DDR5, and no vendor. `memory_vendor_source` says
which tool answered (`nvidia-rm`, `rocm-smi`, `amd-smi` or `rocm-smi+amd-smi`),
or why none could. On AMD, `driver_version` is the amdgpu driver version from
`rocm-smi --showdriverversion`; on a kernel-bundled driver that is the kernel
release.

The vendor is the one the board was configured for, one value per card. A
repaired card fitted with another vendor's chips still reports the original,
so treat it as the declared vendor and read the memory diagnostics for what the
chips actually do.

## Fields that read N/A, and why

A field reads `N/A` when nothing was measured; Pantheon never reports a zero for
a sensor it could not read. Some gaps are the hardware's, some are a tool that
is not installed, and a few were Pantheon not looking:

| Field | NVIDIA | AMD |
|---|---|---|
| Memory type and vendor | Read from the driver. Drivers older than 580 need the list-size handling in `nvidia_memory_info`; WSL has no `/dev/nvidiactl`, so it reads N/A there. | Vendor from rocm-smi, type from amd-smi. N/A when amd-smi is missing. |
| UUID, serial | Always present on current cards. | Only cards that expose a unique ID have one: an RX 6800 does, an RX 6700 XT reports none (a UUID of `0x0`). Hardware. |
| Driver | NVIDIA driver version. | amdgpu driver version, `ROCm Driver` only when rocm-smi cannot say. |
| PCIe gen, width | NVML. | amdgpu sysfs (`current_link_speed`, `current_link_width`). The link downshifts at idle; the report keeps the maximum seen. |
| Core and SoC voltage | Not available: NVML has no voltage reading. | Core from rocm-smi, or the hwmon `vddgfx` rail. SoC (`vddnb`) on APUs only. |
| Fan | N/A on passively cooled data-center cards. | rocm-smi, or hwmon `pwm1`. N/A on a card with no fan sensor. |
| Memory temperature | The NVML memory-temperature field exists on HBM cards (V100, A100, H100, GH200); GDDR cards do not expose it. | When rocm-smi exposes a memory sensor. |
| Limit reason, throttle seconds | Decoded from the clock-event reasons; seconds per cause from the samples, and the driver's violation counters where NVML supports them. | Not reported: no cheap throttle reading exists to poll. |
| Throughput variance | N/A unless a workload prints more than one `Throughput:` line; most print one. | Same. |

## Clocks, limits and the state a run started in

Besides the sensors above, every workload row records how the card was limited, how close it ran to its own
limits, and what state it started in. Each reads `N/A` where the card or driver does not say, never a zero.

**Memory clock.** `Avg Mem Clock (MHz)` and `Max Mem Clock (MHz)`. Most workloads are memory-bound, so this is
what explains a bandwidth score that is low while the graphics clock looks fine. Read it next to the card's
`max_memory_clock_mhz` in `gpu_static_info`.

**Both temperature sensors.** `Max Edge Temp (C)` and `Max Hotspot Temp (C)`. `Max Temp (C)` is the hotspot on
AMD and the edge sensor on NVIDIA, so it does not compare across vendors; these two do. NVIDIA reports no
hotspot, so that column reads `N/A` there. `Thermal Margin (C)` is the card's own slowdown temperature minus
`Max Temp (C)`: how far the hottest reading came from the point where the card slows itself down. It is negative
when the card went past it.

**Seconds held back, by cause.** `Throttle Power (s)`, `Throttle Thermal (s)` and `Throttle Power Brake (s)`
count the seconds each limit was *active*, from the per-second samples (NVIDIA only; AMD publishes no cheap
throttle reading, so they read `N/A`). `Power Violation (s)` and `Thermal Violation (s)` are the driver's own
cumulative counters read before and after the run: the seconds the card was actually held below the clock it
wanted. They are different questions. A card that sits at its power limit for the whole run shows the power cap
as active for the whole run, while the violation counter can still say it lost under a second, because the
limit was never the thing slowing it down. On an RTX 3080 Ti, a 60 s memory-bandwidth run read 61 s of power cap
and 0.56 s of violation. Use the cap seconds to see that a limit is in play and the violation seconds to see
what it cost. The counters need NVML support; where it has none they read `N/A`. They are the driver's own
bookkeeping and differ between drivers: the Windows driver under WSL also advances them while the card is idle
(on an RTX 3060 the power counter gained 3.99 s in 4 s of idle), where the Linux drivers checked left them at
zero for an idle card.

**The state the run started in.** `Start Temp (C)`, `Start Power (W)`, `Start GPU Util (%)`,
`Start Mem Used (MiB)`, `Start Clock (MHz)` and `Start Mem Clock (MHz)` are the reading taken just before
the workload launches. A card that was still hot, or still clocked up, from the previous run reads that way
here, which is the quickest way to tell a cold start from a back-to-back one. It is read before the workload
is launched, so it is the idle card and not the run's own allocation. (An AMD card whose graphics engine is
powered down at idle reads `Start Clock (MHz)` as 0: the clock really is gated off.) `Other GPU Processes` is how many
processes already held a context on the card (NVIDIA; `N/A` on AMD), and `Host Load 1m (start)` is the host's
one-minute load average, so a run that shared the machine or the card is visible in its own row.

**What the card is rated for.** `gpu_static_info` carries, per card and read once at start-up:
`max_graphics_clock_mhz`, `max_memory_clock_mhz`, `memory_bus_width_bits`, `pcie_max_gen`, `pcie_max_width`,
`cuda_cores` (NVIDIA) or `compute_units` (AMD), `vbios_version`, `persistence_mode`, `compute_mode`, `mig_mode`
(NVIDIA), `power_limit_default`, `power_limit_enforced`, `temp_slowdown_c`, `temp_shutdown_c` and `numa_node`.
They are the denominators for a measured clock, link or temperature. For example, the peak memory bandwidth is
`memory_bus_width_bits / 8 x max_memory_clock_mhz x 2` on NVIDIA (the factor is the memory's data rate, 16 for
the GDDR6 on the Radeons here), and `pcie_max_*` against the `PCIe Gen` and `PCIe Width` of a run shows a
downgraded link. NVIDIA is read from NVML with nvidia-smi as the fallback; AMD from one `amd-smi static` call,
which also answers while a card sleeps, and sysfs.

## Host CPU

Each report names the host CPU in `cpu_info.model`, and every workload row
records what the CPU was doing while the workload ran, sampled on the same
one-second ticks as the GPU telemetry:

- `Avg CPU Util (%)` / `Max CPU Util (%)`: load across the whole machine.
- `Avg Busiest Core (%)` / `Max Busiest Core (%)`: load on the single busiest
  core at each tick. This is the column that exposes a host bottleneck: a
  workload waiting on one launch thread pins one core while the machine-wide
  average stays low (one saturated core of eight reads as 12.5%).
- `Avg CPU Clock (MHz)`: average host CPU clock.

Read them next to `Avg GPU Util (%)`. A GPU near 100% busy with an idle host is
GPU-bound. A GPU that is noticeably less busy while the busiest core sits near
100% is waiting for the host to hand it work, so a faster or less loaded host
CPU would raise the score. The per-second values are in `time_series.csv`.

## Per-workload documentation

Each workload has its own page under `kernels/<test>/README.md` describing what
it stresses, how to read a failure, and what its reported metric does not mean.

## Community

Questions, results and ideas go to GitHub Discussions:
https://github.com/pantheongpu/pantheon/discussions. Post the card, the driver,
the command you ran and either the report file or the lines from the final
summary you found interesting. Reproducible bugs go to Issues. Results that
come with a report file can be submitted to the public database through the
[website repository](https://github.com/pantheongpu/pantheongpu_website/issues/new?template=benchmark-submission.yml).

## Disclaimer

Pantheon is an independent project. It is not generated, verified, or endorsed
by **AMD** or **NVIDIA**, and its results are not produced by official vendor
performance labs. Measurements reflect the driver versions, power limits and
thermal conditions of whatever machine they were taken on, so figures from
different environments are not directly comparable.
