Organization of This Document

This guide is a comprehensive technical document for Ascend C operator development. It describes the programming model, language extension features, C++ class library APIs, hardware implementation, and debugging and optimization. Both beginners and experienced engineers can fully understand how to efficiently unleash the full compute potential of the Ascend AI Processor by reading this guide.

The organization of this document and the content of each chapter are as follows:

  • Programming Model: describes the Ascend C programming model and paradigm.
  • Compilation and Running: describes how to compile Ascend C operators and the common APIs required for operator running.
  • Language Extension Layer: describes the features of the language extension layer, including built-in variables and functions, and extended C APIs of Ascend C.
  • C++ Class Library APIs: describes the multi-layer class library APIs of Ascend C, including the basic APIs for single-instruction encapsulation and abstraction, and high-level APIs based on single-core common algorithm abstraction.
  • Hardware Implementation: describes the hardware implementation of Ascend C, including the hardware architecture, specifications, and usage restrictions of Ascend AI Processors.
  • Debugging and Tuning: describes how to debug and optimize the performance of Ascend C operators.