A shakedown cruise for freshly built ROCm.
- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Validation and benchmark harness for TheRock installs built by therock-SlackBuild. Three layers per docs/: probes emit a single JSON verdict line; suites own ordering and expected outcomes; frontends (CLI now, curses planned) render. Implemented: bin/rocmscope dispatcher (--suite/--probe/--device/--json), runtime probe (amdgpu/KFD/version coherence), devices probe (rocminfo enumeration, hip_probes escalation path), memory probe stub (delegation pattern), install suite, probe-authorship contract. First real finding on shakedown: runtime probe correctly reports rocm-version-empty on the pre-install machine. |
||
| bin | ||
| docs | ||
| probes | ||
| suites | ||
| .gitignore | ||
| README.md | ||
rocmScope
A validation and benchmarking suite for TheRock installs built by the therock-SlackBuild project. Verifies that a freshly installed ROCm stack actually works, and measures what the hardware beneath it can do.
Purposes, in order
- Install validation (primary): after
installpkg, run rocmScope and get a red/green answer for every layer of the stack -- device enumeration, runtime init, memory, kernel launch, library smoke tests, profiler availability. A 40-hour build deserves to know within minutes whether it produced a working install. - Performance scoping (secondary): per-device throughput benchmarks (memory bandwidth, compute, launch latency) to compare GPU families -- e.g. a gfx120X-only package vs. a combined gfx120X+gfx103X install.
Design
Three layers, strictly separated:
- Probes (
probes/): self-contained checks, each emitting structured results (JSON on stdout:{"status": "pass|warn|fail", "metrics": {...}, "detail": "..."}). Shell probes handle environment/enumeration; the compiled helper (hip_probes) executes HIP/library calls that can't be done from a shell. - Suites (
suites/): JSON files ordering probes and declaring expected outcomes separately from probe logic. The same probe set validates a gfx120X package, a gfx103X package, or a combined install by swapping the expectations file -- family-specific truths are data, not code. - Frontends (
bin/rocmscope): the CLI walks the registry and prints a report (--jsonfor machine-readable). A curses GUI is a planned second frontend over the same registry; because probes emit structured results, the GUI is a rendering problem, never a redesign.
Usage (CLI)
rocmscope # default: the 'install' suite, all devices
rocmscope --suite minimal # quick smoke (~seconds)
rocmscope --probe memory # single probe
rocmscope --device gfx1201 # restrict HIP probes to one device
rocmscope --suite install --json # machine-readable report
Exit code: 0 = all probes passed (warnings permitted), 1 = any failure. Designed to slot into CI-ish workflows: build, installpkg, rocmScope, gate.
Probe authorship
See docs/probes.md. Rule of thumb: a probe checks one thing, dies loudly
with structured output on unexpected states, and contributes its truth to
the expectations file rather than hardcoding it.
Status
Scaffold stage. devices probe implemented; others stubbed as the 10.2
gfx120X install materializes. Curse-free (the curses GUI comes later).