tilelang

GitHub

Domain-specific language designed to streamline the development of high-performance GPU/CPU/Accelerators kernels

7,163 stars Python Markdown Skills CodeWiki
AI Prompts & Endpoints
Agent Skills View CodeWiki Knowledge Base

Chapter: index (docs/index.md)

👋 Welcome to Tile Language

GitHub

Tile Language (tile-lang) is a concise domain-specific language designed to streamline
the development of high-performance GPU/CPU kernels (e.g., GEMM, Dequant GEMM, FlashAttention, LinearAttention).
By employing a Pythonic syntax with an underlying compiler infrastructure on top of TVM,
tile-lang allows developers to focus on productivity without sacrificing the
low-level optimizations necessary for state-of-the-art performance.

:::{toctree}
:maxdepth: 2
:caption: GET STARTED

get_started/Installation
get_started/overview
get_started/targets
:::

:::{toctree}
:maxdepth: 1
:caption: TUTORIALS

tutorials/debug_tools_for_tilelang
tutorials/auto_tuning
tutorials/logging
:::

:::{toctree}
:maxdepth: 1
:caption: TOOLS

tools/index
tools/analyzer
tools/layout_visualization
tools/autodd
tools/lower_trace
tools/pass_diff
tools/iket
:::

:::{toctree}
:maxdepth: 1
:caption: PROGRAMMING GUIDES

programming_guides/overview
programming_guides/language_basics
programming_guides/instructions
programming_guides/control_flow
programming_guides/software_pipeline
programming_guides/python_compatibility
programming_guides/autotuning
programming_guides/type_system
:::

:::{toctree}
:maxdepth: 1
:caption: DEEP LEARNING OPERATORS

deeplearning_operators/elementwise
deeplearning_operators/gemv
deeplearning_operators/matmul
deeplearning_operators/matmul_sparse
deeplearning_operators/deepseek_mla
:::

:::{toctree}
:maxdepth: 1
:caption: COMPILER INTERNALS

compiler_internals/letstmt_inline
compiler_internals/inject_fence_proxy
compiler_internals/tensor_checks
compiler_internals/metal_tilelang_development
:::

:::{toctree}
:maxdepth: 1
:caption: DEVELOPER GUIDE

developer_guide/cpp_style
:::

:::{toctree}
:maxdepth: 1
:caption: API Reference

autoapi/tilelang/index
:::

:::{toctree}
:maxdepth: 1
:caption: Privacy

privacy
:::

Chapter: README (docs/README.md)

Tile Language Documentation

The documentation was built upon Sphinx.

Dependencies

Run the following command in this directory to install dependencies first:

bash
pip3 install -r requirements.txt

Build the Documentation

Then you can build the documentation by running:

bash
make html

View the Documentation

Run the following command to start a simple HTTP server:

bash
cd _build/html
python3 -m http.server

Then you can view the documentation in your browser at http://localhost:8000 (the port can be customized by appending -p PORT_NUMBER in the python command above).