upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/multi_gpu_validation.md
diff options
context:
space:
mode:
authorNolan Cotter <186326284+NolanCotter@users.noreply.github.com>2026-11-22 20:39:59 -0700
committerNolan Cotter <186326284+NolanCotter@users.noreply.github.com>2026-11-22 20:39:59 -0700
commitfa5f26db8eafd2cc27f627b68c0a5a5949bcf2ff (patch)
treefc57e238be829295fc216dff89a6d93e64c16b50 /docs/multi_gpu_validation.md
parent9b693ecd8a2f90799f6c47f8f06cf062feb9820c (diff)
parent7b7d73f890f9fbbf5967bbb694390bbc99e33ba6 (diff)
Merge origin/main: DXGI device fields coexist with the console-ABI device state
Diffstat (limited to 'docs/multi_gpu_validation.md')
-rw-r--r--docs/multi_gpu_validation.md79
1 files changed, 79 insertions, 0 deletions
diff --git a/docs/multi_gpu_validation.md b/docs/multi_gpu_validation.md
new file mode 100644
index 000000000..dbea4da09
--- /dev/null
+++ b/docs/multi_gpu_validation.md
@@ -0,0 +1,79 @@
1# Multi-GPU validation on identical cards
2
3A small box with several identical GPUs is useful for **parallel sharding**, not for inventing several independent
4hardware results. This page records the setup used for the eight-card RDNA1/RADV farm and the rules that kept its
5numbers meaningful. Counts and pass/fail lines only: no shader corpus, game files, keys or private paths belong
6here or in any report generated from it.
7
8## Hardware used
9
10Eight AMD Radeon Pro V540 cards, Navi 12 / gfx1011 (RDNA1, PCI `1002:7360`, subsystem `1002:1a34`, VBIOS
11`113-D3020100-103`), on bare metal (no VM passthrough), each bound to `amdgpu` and reachable through a render node.
12RADV Mesa 25.2.8, Vulkan device 1.4.318, loader 1.3.275, subgroup range 32..64. Ubuntu 24.04.4, kernel
137.0.0-31-generic, GCC 13.3.0, Python 3.12.3, CMake 3.28.3, llvm-mc 21.1.8 with the AMDGPU target, SPIRV-Tools
142026.1 (2025.1 is too old for the `FMAKHR` capability used by `LEONIDA_FMA=khr`).
15
16| PCI BDF | Render node | Shard label |
17|---|---|---|
18| `0000:1c:00.0` | `renderD128` | gpu0 |
19| `0000:1f:00.0` | `renderD129` | gpu1 |
20| `0000:55:00.0` | `renderD130` | gpu2 |
21| `0000:58:00.0` | `renderD131` | gpu3 |
22| `0000:8e:00.0` | `renderD132` | gpu4 |
23| `0000:91:00.0` | `renderD133` | gpu5 |
24| `0000:c7:00.0` | `renderD134` | gpu6 |
25| `0000:ca:00.0` | `renderD135` | gpu7 |
26
27## Pinning one device per process
28
29Use the PCI BDF, never an index, and exclude software drivers explicitly:
30
31```sh
32lspci -Dn -d 1002:7360
33DRI_PRIME='pci-0000_1c:00.0!' VK_LOADER_DRIVERS_SELECT='*radeon*' vulkaninfo --summary
34```
35
36For every BDF in the table, that check must show **exactly one** RADV NAVI12 device. If it shows none or several,
37stop and report the blocker; do not substitute llvmpipe. The ICD file on this box is `radeon_icd.json`, so
38`VK_LOADER_DRIVERS_SELECT='*radv*'` matches nothing and makes `vkCreateInstance` fail with `-9`.
39
40## Shard discipline
41
42- Split work into **disjoint** units: different seeds for the fuzzers, different `--start`/`--count` ranges for a
43 translated index, or different test names. Eight processes running the same full suite are eight copies of one
44 result, not a validation farm.
45- Run one process per card, keep logs per card, and aggregate counts afterwards.
46- Each PR verification used a clean worktree at the PR head and, where a base was named, a second worktree at that
47 base with its own freshly built programs. Mixing a script from one commit with binaries from another produces
48 false failures (see "Known problems" in [testing.md](testing.md)).
49- When a shard fails, rerun the *same* shard on two or three other cards. Failing everywhere points to a driver or
50 corpus issue; failing on one card points to that card. Re-run single failing tests in isolation before calling a
51 result reproducible.
52- A transient single-card anomaly must be reported as such. On this box `0000:ca:00.0` intermittently produced a
53 few mismatching pixels in different fragment tests on different full-suite runs, while each failing test passed
54 3/3 in isolation and the other seven cards were clean. It was never counted as a PR regression.
55
56## Results already collected
57
58These are aggregate results from this box; the full per-command counts are in the linked #166 entries, not in this
59page. No game-derived data was used for any of them.
60
61- Single-card RDNA1/RADV baseline suite and TEST-71 fuzz matrix: [#166 entry](https://github.com/ItsNotRexed/Leonida/issues/166#issuecomment-7078373329).
62- Eight-card fallback matrix and extended fuzz campaign (seeds 4–11, 200 programs, both waves): [#166 entry](https://github.com/ItsNotRexed/Leonida/issues/166#issuecomment-7079130604).
63- Native MUBUF `OOB_SELECT` measurement on gfx1011 with `tools/hw_oracle` and `tools/buffer_bounds_probe.py`: 12 cases
64 at wave32 and wave64 (24 groups), all following the measured RDNA2/GFX11 column, 8 disagreements with Mesa's
65 GFX10 column, 0 wave32/wave64 differences (SHADER-341; results in [buffer_bounds.md](buffer_bounds.md)).
66
67Two failures recur on these cards at the tested commits and were confirmed on clean base worktrees, so they are
68driver-version limitations rather than regressions from the PRs tested here: `cs_w32_salu64` (wrong high word of
69an `s_bfe_i64` field) and `cs_signed_zero_nan`. The latter is the signed-zero class tracked in #1203. A real
70regression was found on PR #2715: two wave64 pixel fixtures returned the clear value on all three cards tested while
71the PR's base passed them.
72
73## Using a translated corpus
74
75If a private translated shader directory containing `index.json` and `stubs/` is available, shard the *sorted* index
76with `vk_pipeline_check --start`/`--count` and one pipeline cache per shard. Record ok/skipped/failed by stage and
77generic error category only: never post shader names, contents or private paths. RDNA1 legitimately skips mesh,
78barycentric and maintenance8 shaders; report those separately from passes. If no such directory exists, do not run
79this phase and do not report pipeline counts as if you had.