Installation
Development
High-level design
Python API (PyAsc2)
Python API (PyAsc)
get_program_counter()
MLIR
获取程序计数器的指针,程序计数器用于记录当前程序执行的位置。
对应的Ascend C函数原型
__aicore__ inline int64_t GetProgramCounter()
参数说明
无。
调用示例
pc = asc.get_program_counter()