Overview
This section describes the mstx dotting API. You can customize the sampling period or the start and end time of key functions to identify these functions or iterations and quickly demarcate performance problems.
By default, the mstx API does not provide any function. You need to call the mstx API in the user application and enable the mstx dotting function based on different scenarios, for example, when using the msprof commands to sample data, set --msproftx=on. When using the AscendCL API to sample data, configure ACL_PROF_MSPROFTX. When using the Ascend PyTorch Profiler API to sample data, set msprof_tx=True.
- Path of the libms_tools_ext.so library file: ${INSTALL_DIR}/lib64
- When the header file is used for compilation, the dl library needs to be linked during program compilation. The header file ms_tools_ext.h is stored in ${INSTALL_DIR}/include/mstx.
Replace ${INSTALL_DIR} with the actual CANN component directory. If the Ascend-CANN-Toolkit package is installed as the root user, the CANN component directory is /usr/local/Ascend/ascend-toolkit/latest.