Skip to content

Combine location information with debug sources #20

Description

@nazar-pc

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions