GetProgramCounter(ISASI)

Function Usage

Obtains the pointer to the program counter, which is used to record the current program execution position.

Prototype

1
__aicore__ inline int64_t GetProgramCounter()

Parameters

None

Returns

Pointer to the program counter of the int64 type.

Availability

Atlas inference product's AI Core

Atlas A2 training products/Atlas A2 inference products

Atlas A3 training products/Atlas A3 inference products

Constraints

None

Example

1
int64_t pc = AscendC::GetProgramCounter();