Skip to content

Commit 58856e1

Browse files
Update docs
1 parent eb4a5ec commit 58856e1

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

_sources/get_started/Installation.md.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,26 @@ If you want to install **tile-lang** in development mode, you can run the follow
6565
pip install -e . -v
6666
```
6767

68+
If you prefer to work directly from the source tree via `PYTHONPATH`, make sure the native extension is built first:
69+
70+
```bash
71+
mkdir -p build
72+
cd build
73+
cmake .. -DUSE_CUDA=ON
74+
make -j
75+
```
76+
Then add the repository root to `PYTHONPATH` before importing `tilelang`, for example:
77+
78+
```bash
79+
export PYTHONPATH=/path/to/tilelang:$PYTHONPATH
80+
python -c "import tilelang; print(tilelang.__version__)"
81+
```
82+
83+
Some useful CMake options you can toggle while configuring:
84+
- `-DUSE_CUDA=ON|OFF` builds against NVIDIA CUDA (default ON when CUDA headers are found).
85+
- `-DUSE_ROCM=ON` selects ROCm support when building on AMD GPUs.
86+
- `-DNO_VERSION_LABEL=ON` disables the backend/git suffix in `tilelang.__version__`.
87+
6888
We currently provide four methods to install **tile-lang**:
6989

7090
1. [Install Using Docker](#install-method-1) (Recommended)

get_started/Installation.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,24 @@ <h2>Building from Source<a class="headerlink" href="#building-from-source" title
529529
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>-e<span class="w"> </span>.<span class="w"> </span>-v
530530
</pre></div>
531531
</div>
532+
<p>If you prefer to work directly from the source tree via <code class="docutils literal notranslate"><span class="pre">PYTHONPATH</span></code>, make sure the native extension is built first:</p>
533+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>mkdir<span class="w"> </span>-p<span class="w"> </span>build
534+
<span class="nb">cd</span><span class="w"> </span>build
535+
cmake<span class="w"> </span>..<span class="w"> </span>-DUSE_CUDA<span class="o">=</span>ON
536+
make<span class="w"> </span>-j
537+
</pre></div>
538+
</div>
539+
<p>Then add the repository root to <code class="docutils literal notranslate"><span class="pre">PYTHONPATH</span></code> before importing <code class="docutils literal notranslate"><span class="pre">tilelang</span></code>, for example:</p>
540+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">export</span><span class="w"> </span><span class="nv">PYTHONPATH</span><span class="o">=</span>/path/to/tilelang:<span class="nv">$PYTHONPATH</span>
541+
python<span class="w"> </span>-c<span class="w"> </span><span class="s2">&quot;import tilelang; print(tilelang.__version__)&quot;</span>
542+
</pre></div>
543+
</div>
544+
<p>Some useful CMake options you can toggle while configuring:</p>
545+
<ul class="simple">
546+
<li><p><code class="docutils literal notranslate"><span class="pre">-DUSE_CUDA=ON|OFF</span></code> builds against NVIDIA CUDA (default ON when CUDA headers are found).</p></li>
547+
<li><p><code class="docutils literal notranslate"><span class="pre">-DUSE_ROCM=ON</span></code> selects ROCm support when building on AMD GPUs.</p></li>
548+
<li><p><code class="docutils literal notranslate"><span class="pre">-DNO_VERSION_LABEL=ON</span></code> disables the backend/git suffix in <code class="docutils literal notranslate"><span class="pre">tilelang.__version__</span></code>.</p></li>
549+
</ul>
532550
<p>We currently provide four methods to install <strong>tile-lang</strong>:</p>
533551
<ol class="arabic simple">
534552
<li><p><a class="reference internal" href="#install-method-1">Install Using Docker</a> (Recommended)</p></li>

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)