Precautions
The basic function support APIs of the CANN open code refer to the dependent APIs in the CANN open code. Currently, the APIs include the error reporting APIs and log APIs. This document describes the functions and parameters of these APIs to help you better use or modify the CANN open code. These APIs are used only in the CANN component customization and custom operator development scenarios.
- Paths of the header file and library file of the error reporting APIs:
- Path of the header file of include (the namespace of the APIs in the header file is ge): ${INSTALL_DIR}/include/base/err_msg.h
- Path of the dependent library file: ${INSTALL_DIR}/lib64/liberror_manager.so
- Paths of the header file and library file of the log APIs:
- Path of the header file of include: ${INSTALL_DIR}/include/base/alog_pub.h (The header file already contains log_types.h.)
- Path of the dependent library file: ${INSTALL_DIR}/lib64/libascendalog.so
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.