Skip to content

Commit

Permalink
[RFC] Add back original Triton setup instructions (#1693)
Browse files Browse the repository at this point in the history
Fixes: #1692

Avoid diverging setup instructions vs. upstream Triton. Add
clarification on `.triton` cache folder. Add a note about
`compile-triton.sh` script.

Signed-off-by: Dmitry Rogozhkin <[email protected]>
  • Loading branch information
dvrogozh authored Jul 25, 2024
1 parent 5ff0d7f commit e81ee4f
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,28 @@ This is the development repository of Intel® XPU Backend for Triton\*, a new [T
# Install from source

```
git clone https://github.com/intel/intel-xpu-backend-for-triton.git -b llvm-target
cd intel-xpu-backend-for-triton
scripts/compile-triton.sh
git clone https://github.com/intel/intel-xpu-backend-for-triton.git;
cd intel-xpu-backend-for-triton;
pip install ninja cmake wheel; # build-time dependencies
pip install -e python
```

Or with a virtualenv:

```
git clone https://github.com/intel/intel-xpu-backend-for-triton.git -b llvm-target
cd intel-xpu-backend-for-triton
scripts/compile-triton.sh --venv
git clone https://github.com/intel/intel-xpu-backend-for-triton.git;
cd intel-xpu-backend-for-triton;
python -m venv .venv --prompt triton;
source .venv/bin/activate;
pip install ninja cmake wheel; # build-time dependencies
pip install -e python
```

Note that `$HOME/.triton` folder is used as default cache location at build time. Developers might find `scripts/compile-triton.sh` script useful for advanced build options.

# Building with a custom LLVM

Triton uses LLVM to generate code for GPUs and CPUs. Normally, the Triton build
Expand Down

0 comments on commit e81ee4f

Please sign in to comment.