Skip to main content

Crate ptxlint

Crate ptxlint 

Source
Expand description

ptxlint — a static analyser for NVIDIA PTX.

Point it at the .ptx your Rust GPU kernels compile to and it reports register pressure, local-memory traffic, shared-memory budget, estimated occupancy and a set of performance lints. No GPU and no CUDA install required; if ptxas happens to be on PATH, the register numbers become exact instead of estimated.

Modules§

diff
Compare two builds of the same kernels.
lints
Lint rules. Each rule looks at one kernel’s parsed body plus its metrics.
metrics
Per-kernel resource metrics and an occupancy model.
parse
A deliberately forgiving PTX scanner.
ptxas
Optional exact numbers from ptxas -v.
report
Human-readable and JSON reporting.

Functions§

analyse_source
Analyse one PTX source.