Diagnostics: run vendor shader analyzers against reproducible XCL artifacts #2552
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-25T23:01:41Z.
Current status
The two steps in the contribution plan have open implementations. PR #2870 verifies artifact bundles and reports 35 passing Python tests. The stacked AMD adapter in #2871 reports 43 passing Python tests and a successful offline RGA 2.15.0.30 run for
gfx1101using a minimal DXC-built compute shader. The Windows workspace run reported failures. Analysis of an XCL-emitted shader and NVIDIA capture remain open.Diagnostics: run vendor shader analyzers against reproducible XCL artifacts
Summary
Add an opt-in post-processing command that consumes the shader artifacts and manifest from #2553, detects the active adapter vendor, and invokes a configured vendor analyzer when available.
The first targets are AMD Radeon GPU Analyzer and NVIDIA Nsight tooling. Analyzer absence or an unsupported shader must be reported as
SKIPPED, while XCL's common validation and correctness tests retain their normal result.Part of #1269 and follows #2541.
Motivation
DXIL validation establishes that a supported validator accepts a container. It does not explain long driver compilation, high VGPR or SGPR pressure, low occupancy, a vendor-specific compiler failure or a GPU crash. XCL now has a path toward stable guest-code and emitted-DXIL identities in #2553. Vendor reports should attach to those identities so results from different machines can be compared.
Proposed interface
Tool locations should be explicit or discovered from documented installations:
Ordinary test and runtime paths must not download an analyzer. A dedicated CI or contributor setup may install a pinned version before invoking the adapter.
Common report fields
AMD path
Use Radeon GPU Analyzer where its DX12 offline mode supports the emitted container and target GPU. Preserve the raw report and extract stable fields such as ISA size, VGPRs, SGPRs and occupancy.
NVIDIA path
Prototype an external Nsight Python controller for a capture or analysis run. Detect an installed supported version and record it. Keep the controller outside XCL's runtime process. Any NVIDIA SDK redistribution or automated installation must follow its license and documented installation flow.
Test behavior
SKIPPEDwhen the tool is absent or the mode is unsupported.Success criteria
AI use
OpenAI Codex reviewed the proposed XCL diagnostic artifact flow and drafted this vendor-analyzer integration plan.
Imported from ivall/xcl. Originally posted by IISKII1 on 2026-11-26T19:56:46Z.
I plan to contribute this in two reviewable steps, building on #2553: first an offline command that verifies the dump manifest/artifact hashes and records reproducible analyzer diagnostics; then an opt-in AMD Radeon GPU Analyzer adapter with explicit tool/target selection, bounded execution and preserved raw output. Missing tools or unsupported inputs will be reported as skipped, without changing common validation results; no automatic downloads. NVIDIA capture integration is outside this first contribution.
AI assistance: Codex (GPT-6), for implementation, tests and this plan. Actual analyzer coverage and limitations will be reported separately from synthetic tests.