Environment Setup

  1. Install the driver, firmware, and CANN packages.

    The development and use of HCCL communication operators depend on the CANN package. For details about how to install the CANN package, see CANN Software Installation.

  2. Set environment variables.

    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 CANN installation path for the root user. For a regular user or to a custom path, replace it with the actual path.