Skip to content
Yueming Hao edited this page Jul 10, 2025 · 7 revisions

Welcome to TritonParse Wiki πŸš€

TritonParse is a comprehensive visualization and analysis tool for Triton IR files, designed to help developers analyze, debug, and understand Triton kernel compilation processes.

License: BSD-3 GitHub Pages

🎯 Quick Navigation

πŸ“š Getting Started

πŸ“– User Guide

πŸ”§ Developer Guide

πŸŽ“ Advanced Topics

πŸ“ Examples & Reference

🌟 Key Features

πŸ” Visualization & Analysis

  • Interactive Kernel Explorer - Browse kernel information and stack traces
  • Multi-format IR Support - View TTGIR, TTIR, LLIR, PTX, and AMDGCN
  • Side-by-side Comparison - Compare IR stages with synchronized highlighting
  • Interactive Code Views - Click-to-highlight corresponding lines

πŸ“Š Structured Logging

  • Compilation Tracing - Capture detailed Triton compilation events
  • Stack Trace Integration - Full Python stack traces for debugging
  • Metadata Extraction - Comprehensive kernel metadata and statistics
  • NDJSON Output - Structured logging format for easy processing

🌐 Deployment Options

  • GitHub Pages - Ready-to-use online interface
  • Local Development - Full development environment
  • Standalone HTML - Self-contained deployments

⚑ Quick Start

1. Installation

# Clone the repository
git clone https://github.com/pytorch-labs/tritonparse.git
cd tritonparse

# Install dependencies
pip install -e .

2. Generate Traces

import tritonparse.structured_logging

# Initialize logging
tritonparse.structured_logging.init("./logs/")

# Your Triton/PyTorch code here
...

# Parse logs
import tritonparse.utils
tritonparse.utils.unified_parse(source="./logs/", out="./parsed_output")

3. Analyze Results

Visit https://pytorch-labs.github.io/tritonparse/ and load your trace files!

πŸ› οΈ Tech Stack

Frontend: React 19, TypeScript, Vite, Tailwind CSS, Monaco Editor Backend: Python, Triton integration, structured logging Deployment: GitHub Pages, local development server

πŸ”— Important Links

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details on:

  • Development setup
  • Code formatting standards
  • Pull request process
  • Issue reporting

πŸ“„ License

This project is licensed under the BSD-3 License. See the LICENSE file for details.


Note: This tool is designed for developers working with Triton kernels and GPU computing. Basic familiarity with GPU programming concepts (CUDA for NVIDIA or ROCm/HIP for AMD), and the Triton language is recommended for effective use.