A comprehensive visualization and analysis tool for Triton IR files β helping developers analyze, debug, and understand Triton kernel compilation processes.
π Try it online β
- π Interactive Visualization - Explore Triton kernels with detailed metadata and stack traces
- π Multi-format IR Support - View TTGIR, TTIR, LLIR, PTX, and AMDGCN in one place
- π Side-by-side Comparison - Compare IR stages with synchronized highlighting
- π Structured Logging - Capture detailed compilation events with source mapping
- π Ready-to-use Interface - No installation required, works in your browser
- π Privacy-first - All processing happens locally in your browser, no data uploaded
import tritonparse.structured_logging
# Initialize logging
tritonparse.structured_logging.init("./logs/")
# Your Triton/PyTorch code here
# ... your kernels ...
# Parse and generate trace files
import tritonparse.utils
tritonparse.utils.unified_parse("./logs/")
The example terminal output is:
tritonparse log file list: /tmp/tmp1gan7zky/log_file_list.json
INFO:tritonparse:Copying parsed logs from /tmp/tmp1gan7zky to /scratch/findhao/tritonparse/tests/parsed_output
================================================================================
π TRITONPARSE PARSING RESULTS
================================================================================
π Parsed files directory: /scratch/findhao/tritonparse/tests/parsed_output
π Total files generated: 2
π Generated files:
--------------------------------------------------
1. π dedicated_log_triton_trace_findhao__mapped.ndjson.gz (7.2KB)
2. π log_file_list.json (181B)
================================================================================
β
Parsing completed successfully!
================================================================================
Visit https://pytorch-labs.github.io/tritonparse/ and open your local trace files (.ndjson.gz format).
π Privacy Note: Your trace files are processed entirely in your browser - nothing is uploaded to any server!
For basic usage (trace generation):
git clone https://github.com/pytorch-labs/tritonparse.git
cd tritonparse
pip install -e .
Prerequisites: Python β₯ 3.10, Triton > 3.3.1 (install from source), GPU required (NVIDIA/AMD)
π Guide | Description |
---|---|
π Wiki Home | Complete documentation and navigation |
π¦ Installation Guide | Detailed setup for all scenarios |
π Usage Guide | Complete workflow and examples |
π Web Interface Guide | Master the visualization interface |
π§ Developer Guide | Contributing and development setup |
β FAQ | Frequently asked questions |
- Frontend: React 19, TypeScript, Vite, Tailwind CSS, Monaco Editor
- Backend: Python with Triton integration, structured logging
- Deployment: GitHub Pages, automatic deployment
TritonParse visualizes the complete Triton compilation pipeline:
Python Source β TTIR β TTGIR β LLIR β PTX/AMDGCN
Each stage can be inspected and compared to understand optimization transformations.
We welcome contributions! Please see our Developer Guide for:
- Development setup
- Code formatting standards
- Pull request process
- Architecture overview
- π Report Issues: GitHub Issues
- π¬ Discussions: GitHub Discussions
- π Documentation: TritonParse Wiki
This project is licensed under the BSD-3 License - see the LICENSE file for details.
β¨ Ready to get started? Visit our Installation Guide or try the online tool directly!