No AI Core Metrics Data Is Collected After the msprof Command Is Executed
Symptom
After the msprof command is executed, the parsed profile data is displayed on the screen, but no AI Core metrics data is included. View the log generated on the host in $HOME/ascend/log/plog. Figure 1 shows an example. Replace $HOME with the root directory on the host of the user.
Possible Cause
According to the log message, the aclInit function is called after aclrtSetDevice in the code implementation. As a result, Runtime cannot deliver the profiling task of AI Core to collect the profile data.
Troubleshooting
Modify the code to ensure that aclInit is called first. Then rebuild the code and execute Profiling.
Parent topic: FAQs
