File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,14 @@ python3 -m pip install . --no-build-isolation -v
5454``` shell
5555# ascend
5656# Recommended: Use the Dockerfile flagtree/dockerfiles/Dockerfile-ubuntu20.04-python3.9-ascend
57+ # After registering an account at https://www.hiascend.com/developer/download/community/result?module=cann,
58+ # download the cann-toolkit and cann-kernels for the corresponding platform.
59+ # Here we use the A3 processor with AArch64 architecture as an example to demonstrate how to install.
60+ chmod +x Ascend-cann-toolkit_8.2.RC1.alpha002_linux-aarch64.run
61+ ./Ascend-cann-toolkit_8.2.RC1.alpha002_linux-aarch64.run --install
62+ chmod +x Atlas-A3-cann-kernels_8.1.RC1_linux-aarch64.run
63+ ./Atlas-A3-cann-kernels_8.1.RC1_linux-aarch64.run --install
64+ # build
5765mkdir -p ~ /.flagtree/ascend; cd ~ /.flagtree/ascend
5866wget https://oaitriton.blob.core.windows.net/public/llvm-builds/llvm-b5cc222d-ubuntu-arm64.tar.gz
5967cd ${YOUR_CODE_DIR} /flagtree/python
Original file line number Diff line number Diff line change @@ -54,6 +54,13 @@ python3 -m pip install . --no-build-isolation -v
5454``` shell
5555# ascend
5656# 推荐使用镜像 flagtree/dockerfiles/Dockerfile-ubuntu20.04-python3.9-ascend
57+ # 在 https://www.hiascend.com/developer/download/community/result?module=cann
58+ # 注册账号后下载对应平台的 cann-toolkit、cann-kernels,这里以 AArch64 架构的 A3 处理器为例展示如何安装
59+ chmod +x Ascend-cann-toolkit_8.2.RC1.alpha002_linux-aarch64.run
60+ ./Ascend-cann-toolkit_8.2.RC1.alpha002_linux-aarch64.run --install
61+ chmod +x Atlas-A3-cann-kernels_8.1.RC1_linux-aarch64.run
62+ ./Atlas-A3-cann-kernels_8.1.RC1_linux-aarch64.run --install
63+ # 编译安装
5764mkdir -p ~ /.flagtree/ascend; cd ~ /.flagtree/ascend
5865wget https://oaitriton.blob.core.windows.net/public/llvm-builds/llvm-b5cc222d-ubuntu-arm64.tar.gz
5966cd ${YOUR_CODE_DIR} /flagtree/python
You can’t perform that action at this time.
0 commit comments