In the
In the
After the CANN software 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.
export PATH=/usr/local/python3.7.5/bin:$PATH # Set the library path for Python 3.7.5. export LD_LIBRARY_PATH=/usr/local/python3.7.5/lib:$LD_LIBRARY_PATH
The preceding environment variables take effect only in the current window. You can write the preceding commands to the ~/.bashrc file to make them take effect permanently. The operations are as follows:
Before using the tool, understand the following restrictions:
If the application has called aclInit() but not aclFinalize(), the profiling process will be terminated abnormally, resulting in incomplete profile data. Data sampled within the last second may be lost due to delayed flushing. The volume of lost data does not exceed 2 MB, and this loss does not affect the analysis of flushed profile data.