You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tilelang use ffi/cython/dlpack to interact with pytorch tensor,
212
-
so `--no-build-isolation` and similar configs are not necessary.
213
-
214
211
### Build-time environment variables
215
212
`USE_CUDA`: If to enable CUDA support, default: `ON` on Linux, set to `OFF` to build a CPU version. By default, we'll use `/usr/local/cuda` for building tilelang. Set `CUDAToolkit_ROOT` to use different cuda toolkit.
216
213
@@ -251,3 +248,25 @@ VSCode with clangd and [clangd extension](https://marketplace.visualstudio.com/i
251
248
If you plan to use your wheel in other environment,
252
249
it's recommend to use auditwheel (on Linux) or delocate (on Darwin)
253
250
to repair them.
251
+
252
+
## Faster rebuild for developers
253
+
254
+
`pip install` introduces extra [un]packaging and takes ~30 sec to complete,
255
+
even if no source change.
256
+
257
+
Developers who needs to recompile frequently could use:
258
+
259
+
```bash
260
+
pip install -r requirements-dev.txt
261
+
pip install -e . -v --no-build-isolation
262
+
263
+
cd build; ninja
264
+
```
265
+
266
+
When running in editable/developer mode,
267
+
you'll see logs like below:
268
+
269
+
```console
270
+
$ python -c 'import tilelang'
271
+
2025-10-14 11:11:29 [TileLang:tilelang.env:WARNING]: Loading tilelang libs from dev root: /Users/yyc/repo/tilelang/build
Copy file name to clipboardExpand all lines: get_started/Installation.html
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -658,8 +658,6 @@ <h2>Install with Nightly Version<a class="headerlink" href="#install-with-nightl
658
658
</section>
659
659
<sectionid="install-configs">
660
660
<h2>Install Configs<aclass="headerlink" href="#install-configs" title="Link to this heading">¶</a></h2>
661
-
<p>tilelang use ffi/cython/dlpack to interact with pytorch tensor,
662
-
so <codeclass="docutils literal notranslate"><spanclass="pre">--no-build-isolation</span></code> and similar configs are not necessary.</p>
663
661
<sectionid="build-time-environment-variables">
664
662
<h3>Build-time environment variables<aclass="headerlink" href="#build-time-environment-variables" title="Link to this heading">¶</a></h3>
665
663
<p><codeclass="docutils literal notranslate"><spanclass="pre">USE_CUDA</span></code>: If to enable CUDA support, default: <codeclass="docutils literal notranslate"><spanclass="pre">ON</span></code> on Linux, set to <codeclass="docutils literal notranslate"><spanclass="pre">OFF</span></code> to build a CPU version. By default, we’ll use <codeclass="docutils literal notranslate"><spanclass="pre">/usr/local/cuda</span></code> for building tilelang. Set <codeclass="docutils literal notranslate"><spanclass="pre">CUDAToolkit_ROOT</span></code> to use different cuda toolkit.</p>
@@ -698,6 +696,24 @@ <h2>Repairing wheels<a class="headerlink" href="#repairing-wheels" title="Link t
698
696
it’s recommend to use auditwheel (on Linux) or delocate (on Darwin)
699
697
to repair them.</p>
700
698
</section>
699
+
<sectionid="faster-rebuild-for-developers">
700
+
<h2>Faster rebuild for developers<aclass="headerlink" href="#faster-rebuild-for-developers" title="Link to this heading">¶</a></h2>
701
+
<p><codeclass="docutils literal notranslate"><spanclass="pre">pip</span><spanclass="pre">install</span></code> introduces extra [un]packaging and takes ~30 sec to complete,
702
+
even if no source change.</p>
703
+
<p>Developers who needs to recompile frequently could use:</p>
0 commit comments