Environment Setup

Installing the Driver, Firmware, and CANN Package

The CANN package is required for using HCCL and developing communication operators. For details about how to install the CANN package, see CANN Software Installation.

If you only develop and compile applications but do not execute them, the driver and firmware packages are not required.

Setting the Environment Variable

Before compiling and running a program, you need to set the CANN environment variable.

source /usr/local/Ascend/cann/set_env.sh

/usr/local/Ascend indicates the default installation path for CANN software when installed as the root user. If the CANN software is installed as a regular user or to a specified path, replace it with the actual path.