-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathmkdocs.yml
More file actions
307 lines (297 loc) · 11.4 KB
/
Copy pathmkdocs.yml
File metadata and controls
307 lines (297 loc) · 11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
# Copyright (c) PyPTO Contributors.
# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
# CANN Open Software License Agreement Version 2.0 (the "License").
# Please refer to the License for details. You may not use this file except in compliance with the License.
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
# See LICENSE in the root of the software repository for the full text of the License.
# -----------------------------------------------------------------------------------------------------------
#
# MkDocs configuration for the PyPTO documentation site.
#
# The markdown under `docs/` is the single source of truth and must stay readable
# directly on GitHub; this file only describes how it is rendered. The built site
# is never committed -- CI publishes it to GitHub Pages (see .github/workflows/docs.yml).
#
# Build locally:
# pip install -r docs/requirements.txt
# mkdocs serve # live preview on http://127.0.0.1:8000
# mkdocs build --strict # what CI runs; warnings (broken links) fail the build
site_name: PyPTO
site_description: A high-performance programming framework for tile-centric computing
site_url: https://hw-native-sys.github.io/pypto/
repo_url: https://github.com/hw-native-sys/pypto
repo_name: hw-native-sys/pypto
edit_uri: edit/main/docs/
copyright: Copyright © PyPTO Contributors
docs_dir: docs
site_dir: site
# Build inputs that live under docs/ but are not content.
exclude_docs: |
requirements.txt
/superpowers/
# Broken internal links must fail the build, not warn. `mkdocs build --strict`
# promotes every warning to an error; these settings decide what counts as one.
validation:
links:
not_found: warn
absolute_links: warn
unrecognized_links: warn
nav:
omitted_files: warn
not_found: warn
theme:
name: material
language: en
features:
- navigation.tabs
- navigation.sections
- navigation.indexes
- navigation.top
- content.code.copy
- content.action.edit
- search.suggest
- search.highlight
- toc.follow
palette:
- scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/brightness-7
name: Switch to dark mode
- scheme: slate
primary: indigo
accent: indigo
toggle:
icon: material/brightness-4
name: Switch to light mode
plugins:
# `lang: [en, zh]` needs `jieba` for Chinese word segmentation -- it ships in
# docs/requirements.txt.
- search:
lang:
- en
- zh
# Folder-structured i18n: `docs/en/**` is the default locale and is served at
# the site root, `docs/zh/**` under `/zh/`. The `nav` below is declared
# with default-locale (`en/...`) paths; the plugin swaps in the localized file
# for every other locale, so page titles come from each locale's own H1.
- i18n:
docs_structure: folder
fallback_to_default: true
reconfigure_material: true
reconfigure_search: true
languages:
- locale: en
name: English
default: true
build: true
- locale: zh
name: 简体中文
build: true
nav_translations:
Home: 首页
User Manual: 用户手册
Reference: 参考
Developer: 开发者
Runtime: 运行时
PTO ISA: PTO ISA
IR: IR
Passes: Passes
Language: 语言
Code Generation: 代码生成
Backend: 后端
Debug: 调试
Distributed: 分布式
# Renders `pl.*` / `pypto.runtime.*` API pages from source docstrings. No
# generated pages are wired into the nav yet -- that lands with the Reference
# chapter (see issue #2120); the handler is configured here so the contract
# (Google-style docstrings) is fixed from day one.
- mkdocstrings:
handlers:
python:
paths: [python]
options:
docstring_style: google
show_source: false
show_root_heading: true
members_order: source
# Rewrites repo-relative links that escape `docs/` (source files, `.claude/rules`,
# `examples/`) into GitHub blob URLs at build time. The markdown keeps working
# relative links for readers browsing the repo, and the site gets links that
# resolve -- without which `--strict` fails on every such reference.
hooks:
- scripts/mkdocs_hooks.py
markdown_extensions:
- abbr
- admonition
- attr_list
- def_list
- footnotes
- md_in_html
- tables
- toc:
permalink: true
toc_depth: 3
- pymdownx.details
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
- pymdownx.tabbed:
alternate_style: true
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/hw-native-sys/pypto
name: PyPTO on GitHub
# Every page under `docs/en/` must appear below, and every one of them must have a
# `docs/zh/` mirror. `tests/lint/check_docs_nav.py` enforces both in CI, so adding a
# doc without a nav entry (which would leave it reachable only by direct URL) fails.
nav:
- Home: en/index.md
- User Manual:
- en/user/index.md
- en/user/01-installation.md
- en/user/02-quickstart.md
- en/user/03-programming-model.md
- Language Guide:
- en/user/language/index.md
- en/user/language/00-types.md
- en/user/language/01-functions.md
- en/user/language/02-control-flow.md
- en/user/language/03-memory.md
- en/user/language/04-scopes.md
- en/user/language/05-directives.md
- en/user/language/06-syntax.md
- Tasks and Ordering:
- en/user/tasks/index.md
- en/user/tasks/00-model.md
- en/user/tasks/01-scopes.md
- en/user/tasks/02-submit.md
- en/user/tasks/03-tuning.md
- Operations:
- en/user/ops/index.md
- en/user/ops/00-dispatch.md
- en/user/ops/01-catalog.md
- en/user/01-language_guide.md
- en/user/00-getting_started.md
- en/user/03-torch_codegen_debug.md
- Distributed:
- en/user/distributed/index.md
- en/user/distributed/00-model.md
- en/user/distributed/01-collectives.md
- en/user/distributed/02-primitives.md
- en/user/distributed/03-execution.md
- en/user/distributed/04-debugging.md
- en/user/distributed/05-tutorials.md
- en/user/distributed/06-hello_rank.md
- en/user/distributed/07-programming_model.md
- en/user/distributed/08-window_buffer.md
- en/user/distributed/09-barrier.md
- en/user/distributed/10-remote_load_store.md
- en/user/distributed/11-put_get.md
- en/user/distributed/12-dynamic_rank_count.md
- Reference:
- en/reference/index.md
- PTO ISA:
- en/reference/pto-isa/index.md
- en/reference/pto-isa/00-cluster_architecture.md
- en/reference/pto-isa/01-tpush_tpop.md
- en/reference/pto-isa/02-buffer_management.md
- Developer:
- en/dev/index.md
- en/dev/00-ecosystem.md
- en/dev/01-compile-profiling.md
- en/dev/02-error-handling.md
- en/dev/03-logging.md
- en/dev/03-runtime-dfx.md
- en/dev/04-simulator-trace-cleaning.md
- en/dev/05-runtime-ring-sizing.md
- en/dev/06-persistent-l3.md
- en/dev/07-memory-map.md
- en/dev/07-ir-lower-trace.md
- en/dev/distributed_ops.md
- en/dev/ptoas-op-status.md
- IR:
- en/dev/ir/index.md
- en/dev/ir/00-overview.md
- en/dev/ir/01-hierarchy.md
- en/dev/ir/02-types.md
- en/dev/ir/03-structural_comparison.md
- en/dev/ir/04-serialization.md
- en/dev/ir/05-operators.md
- en/dev/ir/06-builder.md
- en/dev/ir/07-parser.md
- Passes:
- en/dev/passes/index.md
- en/dev/passes/00-pass_manager.md
- en/dev/passes/01-inline_functions.md
- en/dev/passes/02-unroll_loops.md
- en/dev/passes/03-ctrl_flow_transform.md
- en/dev/passes/04-convert_to_ssa.md
- en/dev/passes/05-simplify.md
- en/dev/passes/06-flatten_call_expr.md
- en/dev/passes/07-outline_hierarchy_scopes.md
- en/dev/passes/08-outline_incore_scopes.md
- en/dev/passes/09-outline_cluster_scopes.md
- en/dev/passes/10-convert_tensor_to_tile_ops.md
- en/dev/passes/11-optimize_orch_tensors.md
- en/dev/passes/12-lower_composite_ops.md
- en/dev/passes/13-flatten_tile_nd_to_2d.md
- en/dev/passes/14-legalize_tile_cast.md
- en/dev/passes/15-auto_tile_matmul_l0.md
- en/dev/passes/16-canonicalize_tile_slice.md
- en/dev/passes/17-infer_tile_memory_space.md
- en/dev/passes/18-insert_mx_scale_addr.md
- en/dev/passes/19-resolve_backend_op_layouts.md
- en/dev/passes/20-lower_auto_vector_split.md
- en/dev/passes/21-expand_mixed_kernel.md
- en/dev/passes/22-inject_gm_pipe_buffer.md
- en/dev/passes/23-split_vector_kernel.md
- en/dev/passes/24-stamp_tfree_split.md
- en/dev/passes/25-normalize_return_order.md
- en/dev/passes/26-skew_cross_core_pipeline.md
- en/dev/passes/27-lower_pipeline_to_slots.md
- en/dev/passes/28-lower_pipeline_loops.md
- en/dev/passes/29-canonicalize_io_order.md
- en/dev/passes/30-materialize_tensor_strides.md
- en/dev/passes/31-init_memref.md
- en/dev/passes/32-materialize_semantic_aliases.md
- en/dev/passes/33-memory_reuse.md
- en/dev/passes/34-allocate_memory_addr.md
- en/dev/passes/35-fold_no_op_reshape.md
- en/dev/passes/36-fuse_create_assemble_to_slice.md
- en/dev/passes/37-derive_call_directions.md
- en/dev/passes/38-auto_derive_task_dependencies.md
- en/dev/passes/39-expand_manual_phase_fence.md
- en/dev/passes/40-synthesize_allreduce_signals.md
- en/dev/passes/41-materialize_comm_domain_scopes.md
- en/dev/passes/42-lower_host_tensor_collectives.md
- en/dev/passes/43-materialize_dist_tensor_ctx.md
- en/dev/passes/44-materialize_runtime_scopes.md
- en/dev/passes/45-classify_iter_arg_carry.md
- en/dev/passes/46-insert_comm_fence.md
- en/dev/passes/47-materialize_valid_shape_symbols.md
- en/dev/passes/91-utility_passes.md
- en/dev/passes/92-diagnostics.md
- en/dev/passes/99-verifier.md
- en/dev/passes/loop-carried-dep-compression.md
- en/dev/passes/utils.md
- Language:
- en/dev/language/index.md
- en/dev/language/00-python_syntax.md
- en/dev/language/01-external-kernels.md
- Code Generation:
- en/dev/codegen/index.md
- en/dev/codegen/00-pto_codegen.md
- en/dev/codegen/01-orchestration_codegen.md
- Backend:
- en/dev/backend/index.md
- en/dev/backend/00-backend_handler.md
- Debug:
- en/dev/debug/index.md
- en/dev/debug/00-torch_codegen.md
- Runtime: https://hw-native-sys.github.io/simpler/