asc_get_program_counter
产品支持情况
- Ascend 950PR/Ascend 950DT:支持
- Atlas A3 训练系列产品/Atlas A3 推理系列产品:支持
- Atlas A2 训练系列产品/Atlas A2 推理系列产品:支持
- Atlas 200I/500 A2 推理产品:不支持
- Atlas 推理系列产品AI Core:不支持
- Atlas 推理系列产品Vector Core:不支持
- Atlas 训练系列产品:不支持
功能说明
获取程序计数器的指针,程序计数器用于记录当前程序执行的位置。
函数原型
C++
__aicore__ inline int64_t asc_get_program_counter()
参数说明
无
返回值说明
返回int64_t类型的程序计数器指针。
流水类型
PIPE_S
约束说明
无
调用示例
C++
asc_get_program_counter();