产品 |
是否支持 |
|---|---|
Ascend 950PR/Ascend 950DT |
√ |
x |
|
x |
|
x |
|
x |
|
x |
|
x |
用户通过调用接口,用于在算子执行过程中标记特定位置,便于后期通过流水图分析代码执行路径与性能热点。
1 2 3 4 5 | template<pipe_t pipe = PIPE_S> __aicore__ inline void asc_mark_stamp(uint16_t idx) template<pipe_t pipe = PIPE_S, uint16_t idx> __aicore__ inline void asc_mark_stamp() |
参数名 |
含义 |
|---|---|
pipe |
指定打点所在的pipeline类型。 |
index |
用户设置的打点的唯一标识id。 |
无
mte2_opt(); mte1_opt(); //在算子执行开始处打点 asc_mark_stamp<CUBE, 0>(); //执行核心计算 cube_opt(); //在算子执行结束处打点 asc_mark_stamp<CUBE, 1>(); mte3_opt();