API Overview

This chapter provides an overview of APIs. For details about the APIs, see Ascend C APIs.

Ascend C provides a group of class library APIs, and you can use the standard C++ syntax and class library APIs for programming. Ascend C programming class library APIs are classified into the following types:

Header file directory of Ascend C APIs:

  • Basic APIs: ${INSTALL_DIR}/include/ascendc/basic_api/interface
  • High-level APIs: (Note that if the APIs contained in the following header file directories are not declared in the documentation, they are called indirectly, and developers do not need to pay attention to them.)
    • ${INSTALL_DIR}/include/ascendc/highlevel_api/lib
    • ${INSTALL_DIR}/include/tiling

Replace ${INSTALL_DIR} with the file storage path after CANN software installation. For example, if the installation is performed by the root user, the default file storage path is /usr/local/Ascend/cann.