-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
See Rust-GPU/rust-gpu#323 (comment) for original discussion.
Right now RUSTGPU_CODEGEN_ARGS="--dump-spirt-passes=$PWD/spirt-passes"
results in HTML, which contains file paths and line numbers (helpful!), but not the actual source code (would be very helpful too!).
It is extremely useful to see Rust source code and SPIR-T it was compiled to side by side. There is already Rust-GPU/rust-gpu#201, I'd expect the output to look something similar to its interface: maybe two synchronized columns, which allows easy comparison.
There is also https://github.com/pacak/cargo-show-asm for an example of what it might look like in CLI.
Basically any solution of that kind would go a long way for debugging issues, improving performance, etc.
Metadata
Metadata
Assignees
Labels
No labels