Environment Setup
- Complete the Driver and CANN software installation before developing custom operators. For details, see CANN Software Installation Guide.
- Set the environment variables.The CANN portfolio provides a process-level environment variable setting script to automatically set environment variables. The following commands are used as examples, in which the default installation paths are under the root or non-root user. Replace them with actual installation paths.
# Configure environment variables after installing the Toolkit package as the root user. source /usr/local/Ascend/cann/set_env.sh # Configure environment variables after installing the Toolkit package as a non-root user. source ${HOME}/Ascend/cann/set_env.sh
Parent topic: Development Preparations