Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appendix/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ The main text runs through Parts I–IV. The Reference section collects material
| Need | Where |
|------|-----|
| Look up a TIRx language feature | **{ref}`chap_language_reference`** |
| Debug asynchronous GEMM/FA hangs, crashes, wrong results, or slowdowns | **{ref}`chap_warp_spec_debug`** |
| Compiler internals (the lowering pipeline) | **{ref}`chap_arch`** |
| Debug asynchronous GEMM/FA hangs, crashes, wrong results, or slowdowns | **{ref}`chap_warp_spec_debug`** |

For the complete `tvm.tirx` Python API, see the
[upstream TVM documentation](https://tvm.apache.org/docs/).
Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ chapter_flash_attention/index

appendix/index
tirx_guide/language_reference/index
appendix/debugging_warp_specialized
tirx_guide/arch/index
appendix/debugging_warp_specialized
```
5 changes: 4 additions & 1 deletion tirx_guide/arch/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
Compiler Internals
==================

Internals of the TIRx compiler, for contributors.
This section explains how the TIRx compiler lowers an authored module into a
CPU-side launcher and GPU device code. It follows the compilation pipeline from
high-level TIRx constructs through host/device separation and CUDA code
generation.

.. toctree::
:maxdepth: 1
Expand Down
299 changes: 203 additions & 96 deletions tirx_guide/arch/lowering_pipeline.rst

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion zh/appendix/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
| 需要查询的内容 | 对应页面 |
|---|---|
| TIRx 语言特性的准确写法和语义 | **{ref}`chap_language_reference`** |
| 排查异步 GEMM 或 Flash Attention kernel 的卡死、崩溃、错误结果和性能下降 | **{ref}`chap_warp_spec_debug`** |
| 编译器内部机制与 lowering 流程 | **{ref}`chap_arch`** |
| 排查异步 GEMM 或 Flash Attention kernel 的卡死、崩溃、错误结果和性能下降 | **{ref}`chap_warp_spec_debug`** |

完整的 `tvm.tirx` Python API 请参阅
[TVM 官方文档](https://tvm.apache.org/docs/)。
Expand Down
2 changes: 1 addition & 1 deletion zh/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ chapter_flash_attention/index

appendix/index
tirx_guide/language_reference/index
appendix/debugging_warp_specialized
tirx_guide/arch/index
appendix/debugging_warp_specialized
```
2 changes: 1 addition & 1 deletion zh/tirx_guide/arch/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
编译器内部机制
==============

本节面向 TIRx 贡献者,介绍编译器内部的工作方式
本节介绍 TIRx 编译器如何将编写好的 module 转换成 CPU 端的启动函数和 GPU 端的 device code,并沿着编译流水线说明 TIRx 高层结构、host/device 拆分以及 CUDA 代码生成之间的关系

.. toctree::
:maxdepth: 1
Expand Down
239 changes: 147 additions & 92 deletions zh/tirx_guide/arch/lowering_pipeline.rst

Large diffs are not rendered by default.

Loading