Utils APIs

Ascend C provides various common utility classes, covering functions such as standard library, platform information acquisition, context construction, runtime compilation, and log output. These APIs empower you to efficiently develop operators and optimize performance.

  • C++ standard library APIs: provides C++ standard library functions, such as algorithms, mathematical functions, and container functions.
  • Platform information acquisition APIs: provides the function of obtaining platform information, such as the number of cores on the hardware platform.
  • RTC APIs: runtime compilation library of Ascend C. It dynamically compiles intermediate code into target machine code during program running through aclrtc APIs, improving program running performance.
  • Log APIs: provides the function of printing logs on the host. You can use the ASC_CPU_LOG_XXX API in the TilingFunc code of the operator to output related content.