GetProgramCounter(ISASI)
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
x |
|
√ |
|
x |
|
x |
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
Program counter of the int64_t type.
Constraints
None
Example
1 | int64_t pc = AscendC::GetProgramCounter(); // Obtain the program counter. |
Parent topic: TPosition