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