Sample Reference
Sample Obtaining and Using
Precautions for Using the Build Script
The sample provides a build script, which requires only few manual tweaks to the following variables.
- ASCEND_PATH: Installation path of the CANN software package.
- INCLUDES: header files to be included. Append new header files (if any) to the existing lines. Do not delete the existing lines. If the network contains a custom operator, include the header file of its prototype definition.
- LIBS: libraries to be linked. Append new libraries (if any) to the existing lines. Do not delete the original lines.
Do not link with other .so files in the runfile, as this may cause compatibility problems during version upgrade.
Environment Variables for Running an Application
After the CANN package is installed, log in to the environment as the CANN operating user and run the source $INSTALL_DIR/set_env.sh command to set environment variables. Replace ${INSTALL_DIR} with the CANN component directory. For example, if the installation is performed by the root user, the default file storage path is /usr/local/Ascend/cann.
