Environment Setup

For details about how to deploy the development environment and operating environment, see CANN Software Installation Guide.

  • The following installation paths are used as examples. Before starting the procedure, ensure that the actual installation paths for subsequent operations are obtained.

    • Install the driver as the HwHiAiUser user. ${HOME}/Ascend is its default installation path, containing the driver directory.

    • Install the cann-toolkit software package as the HwHiAiUser user. ${HOME}/Ascend is its default installation path, containing the ascend-toolkit directory.

    • Install the cann-nnrt software package as the HwHiAiUser user. ${HOME}/Ascend is its default installation path, containing the nnrt directory.
    • Install the cann-nnae software package as the HwHiAiUser user. ${HOME}/Ascend is its default installation path, containing the nnae directory.
  • pyACL is integrated in the cann-toolkit and cann-nnrt and cann-nnae software packages. Install one of the software packages based on your needs. The cann-toolkit software package is a development kit package for the development environment. cann-nnrt is the offline inference engine package. cann-nnae is the deep learning engine package, and is applicable to the operating environment.
  • This document uses the HwHiAiUser user as the running user of the development and operating environment. You need to obtain the running user of the development and operating environment in advance before subsequent operations.

  • You can run the export command to declare environment variables in the current terminal window. The environment variables become invalid when you close the shell terminal or switch to another user.