Environment Preparation
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 component as the root user. /usr/local/Ascend is the default installation path, containing the driver, add-ons, and develop directories.
Install the Toolkit component as the root user. /usr/local/Ascend is the default installation path, containing the ascend-toolkit directory.
- Install the NNRT component as the root user. /usr/local/Ascend is the default installation path, containing the nnrt directory.
- PyACL is integrated in the Toolkit and NNRT. You can install PyACL as required. Toolkit is a development kit applicable to the development environment. Ascend Neural Network Runtime (NNRT) 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.