Building Ascend Environment

Hardware and Software Requirements

| Category | Version | Description | |——–|——————–|———-| | Python | Python3.10 | Object-oriented programming language | | CANN | 8.0.RC3.alpha003 | Dawning heterogeneous computing architecture | | System Image | Ubuntu 22.04.5 LTS | Server operating system | | CPU Architecture | aarch64 | CPU Architecture | | NPU | Atlas 800 A2 | NPU Model |

Installation Package Preparation

Download the CANN community version from the following URL
Download the following two installation packages
Ascend-cann-toolkit_8.0.RC3.alpha003_linux-aarch64.run
Ascend-cann-kernels-910b_8.0.RC3.alpha003_linux-aarch64.run

Environment Installation

Refer to the official document
Install CANN

sudo chmod +x Ascend-cann-toolkit_8.0.RC3.alpha003_linux-aarch64.run
./Ascend-cann-toolkit_8.0.RC3.alpha003_linux-aarch64.run --install --force 

Install Kernel

sudo chmod +x Ascend-cann-kernels-910b_8.0.RC3.alpha003_linux-aarch64.run 
sudo ./Ascend-cann-kernels-910b_8.0.RC3.alpha003_linux-aarch64.run --install --install-for-all

Update Environment (If an installation path is specified, please modify the path accordingly)

sudo echo "source /usr/local/Ascend/ascend-toolkit/set_env.sh" >> /etc/profile
source /usr/local/Ascend/ascend-toolkit/set_env.sh

Verify Whether the Environment is Installed Successfully

git clone https://gitee.com/ascend/samples.git
cd samples/operator/AddCustomSample/KernelLaunch/AddKernelInvocation
bash run.sh -v Ascend910B4 -r npu

If successful, the following diagram will display Alt text