Profiling Fails Due to App Execution Error
Symptom
An app running error is reported when the Profiling command is executed. For example, Figure 7-37 shows the specific error.
Possible Cause
According to the log message, the library files required for the app may be absent or the links are incorrect. You need to set the corresponding environment variables correctly.
Solution
Perform the following steps:
- Run the ldd command to check the required dependent library files and identify the absent, as shown in Figure 7-38.
ldd appname //Replace appname with the executable file name of your app.
- Set the corresponding environment variable for the absent library file.
- Run the find command to locate the absent .so file.
- Add the .so file to the /etc/ld.so.conf file by referring to Preparations Before Using Profiling.
If the .so file is not in the operating environment, determine the runfile to be installed and install it by referring to CANN Software Installation Guide.