Skip to main content

Module explain

Module explain 

Source
Expand description

cgp explain — Static code analysis for PTX, SIMD assembly, and WGSL shaders. Spec section 2.7: wraps trueno-explain or performs inline analysis. Detects register pressure, instruction mix, and common performance pitfalls.

Structs§

PtxAnalysis
Result of PTX static analysis.
WgslAnalysis
Result of WGSL static analysis.

Functions§

analyze_ptx
Analyze a PTX file for performance-relevant patterns.
analyze_wgsl
Analyze a WGSL shader for compute patterns.
run_explain
Run the explain command.