AI Engine-ML v2 Intrinsics User Guide  v2025.1
Loading...
Searching...
No Matches
Cycle Counter

Functions

unsigned long long get_cycles ()
 Get number of cycles.
 

Detailed Description

These intrinsics allow to get the number, or part, of cycles elapsed.

Function Documentation

◆ get_cycles()

unsigned long long get_cycles ( )

Get number of cycles.

AIE-ML v2 has a Tile counter which is a free running counter. This intrinsic returns the 64 bit tile counter value. In order to measure the number of cycles taken by a piece of code, this intrinsic should be read first at the start and again at the end of a code section. The difference is the number of cycles consumed by the code section @ AIE-ML v2 Clock frequency.