Skip to content

Commit 759c2e3

Browse files
authored
[DOC] Add document for develop with PYTHONPATH (#1062)
1 parent bf2de5b commit 759c2e3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/get_started/Installation.md

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)

0 commit comments

Comments
 (0)