@@ -22,8 +22,9 @@ python3 -m pip install . --no-build-isolation -v
2222
2323Automatic dependency library downloads may be limited by network conditions. You can manually download to the cache directory ~ /.flagtree (modifiable via the FLAGTREE_CACHE_DIR environment variable). No need to manually set LLVM environment variables such as LLVM_BUILD_DIR.
2424Complete build commands for each backend:
25+
26+ [ iluvatar] ( /third_party/iluvatar/ )
2527``` shell
26- # iluvatar
2728# Recommended: Use Ubuntu 20.04
2829mkdir -p ~ /.flagtree/iluvatar; cd ~ /.flagtree/iluvatar
2930wget https://github.com/FlagTree/flagtree/releases/download/v0.1.0-build-deps/iluvatar-llvm18-x86_64.tar.gz
@@ -32,27 +33,28 @@ cd ${YOUR_CODE_DIR}/flagtree/python
3233export FLAGTREE_BACKEND=iluvatar
3334python3 -m pip install . --no-build-isolation -v
3435```
36+ [ xpu (klx)] ( /third_party/xpu/ )
3537``` shell
36- # xpu (klx)
3738# Recommended: Use the Docker image (22GB) https://su.bcebos.com/klx-sdk-release-public/xpytorch/docker/ubuntu2004_v030/ubuntu_2004_x86_64_v30.tar
39+ # Contact kunlunxin-support@baidu.com for support
3840mkdir -p ~ /.flagtree/xpu; cd ~ /.flagtree/xpu
39- wget https://github.com/FlagTree/flagtree/releases/download/v0.1.0-build-deps/XTDK-llvm18 -ubuntu2004_x86_64.tar
41+ wget https://github.com/FlagTree/flagtree/releases/download/v0.1.0-build-deps/XTDK-llvm19 -ubuntu2004_x86_64.tar.gz
4042wget https://github.com/FlagTree/flagtree/releases/download/v0.1.0-build-deps/xre-Linux-x86_64.tar.gz
4143cd ${YOUR_CODE_DIR} /flagtree/python
4244export FLAGTREE_BACKEND=xpu
4345python3 -m pip install . --no-build-isolation -v
4446```
47+ [ mthreads] ( https://github.com/FlagTree/flagtree/tree/main/third_party/mthreads/ )
4548``` shell
46- # mthreads
4749# Recommended: Use the Dockerfile flagtree/dockerfiles/Dockerfile-ubuntu22.04-python3.10-mthreads
4850mkdir -p ~ /.flagtree/mthreads; cd ~ /.flagtree/mthreads
4951wget https://github.com/FlagTree/flagtree/releases/download/v0.1.0-build-deps/mthreads-llvm19-glibc2.34-glibcxx3.4.30-x64.tar.gz
5052cd ${YOUR_CODE_DIR} /flagtree/python
5153export FLAGTREE_BACKEND=mthreads
5254python3 -m pip install . --no-build-isolation -v
5355```
56+ [ ascend] ( https://github.com/FlagTree/flagtree/tree/triton_v3.2.x/third_party/ascend/ )
5457``` shell
55- # ascend
5658# Recommended: Use the Dockerfile flagtree/dockerfiles/Dockerfile-ubuntu20.04-python3.9-ascend
5759# After registering an account at https://www.hiascend.com/developer/download/community/result?module=cann,
5860# download the cann-toolkit and cann-kernels for the corresponding platform.
@@ -65,6 +67,7 @@ chmod +x Atlas-A3-cann-kernels_8.1.RC1_linux-aarch64.run
6567mkdir -p ~ /.flagtree/ascend; cd ~ /.flagtree/ascend
6668wget https://oaitriton.blob.core.windows.net/public/llvm-builds/llvm-b5cc222d-ubuntu-arm64.tar.gz
6769cd ${YOUR_CODE_DIR} /flagtree/python
70+ git checkout -b triton_v3.2.x origin/triton_v3.2.x
6871export FLAGTREE_BACKEND=ascend
6972python3 -m pip install . --no-build-isolation -v
7073```
0 commit comments