已合并
[DFX] More detail info in op_log and support common OP_LOG. #2596
liu-jiaweikf创建于 2025年6月7日
[DFX] More detail info in op_log and support common OP_LOG. #2596
已合并
liu-jiaweikf创建于 2025年6月7日
refs/pull/2596/head合入到master
liu-jiaweikf
2025年6月7日
  1. More detail info in op_log & support common OP_LOG.

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind bug
/kind task
/kind feature

What does this PR do / why do we need it:

  • debug 日志支持更多 Tensor 信息打印
  • 支持 TensorList/可选Tensor/可选TensorList debug日志打印
  • 提供 op_plugin 模块基础日志打印信息宏 OP_LOG,执行信息采集宏更名为 OP_EXEC_LOG 和 OP_EXEC_LOG_WITH_TASK_QUEUE

Special notes for your reviewers:

likedislike
Pull Request已成功合入, 合并人@
(感谢 liu-jiaweikf 的贡献)
AAtomGit-Bot
2025年6月7日 添加了 &nbsp; ascend-cla/yes 标签
Lliu-jiaweikf
2025年6月7日 更新了标题
liu-jiaweikf
2025年6月7日 评论:

compile

likedislike
atlasaccount1atlasaccount1
2025年6月7日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年6月7日 移除了 &nbsp; ci-pipeline-running 标签
此处折叠了74条消息 查看更多
li_jing_hw成员2025年6月12日进行代码检视1
op_plugin/utils/AdvancedIndex.cpp
@@ -79,3 +79,3 @@
7979 using aclGetViewShapeFuncLocal = int (*)(const aclTensor* tensor, int64_t** view_dims, uint64_t* view_dims_num);
8080 auto aclGetViewShape = reinterpret_cast<aclGetViewShapeFuncLocal>(aclGetViewShapeAddr);
81- OP_LOG(aclnnNonzeroV2, "EXEC_NPU_CMD_SYNC", self, out);
81+ OP_EXEC_LOG(aclnnNonzeroV2, "EXEC_NPU_CMD_SYNC", self, out);
li_jing_hw2025年6月12日评论:

为什么不加在EXEC_NPU_CMD_SYNC里面

能不能封装在op dispatch那里,通过codegen实现

likedislike
liu-jiaweikf2025年6月12日进行代码检视1
op_plugin/utils/AdvancedIndex.cpp
@@ -79,3 +79,3 @@
7979 using aclGetViewShapeFuncLocal = int (*)(const aclTensor* tensor, int64_t** view_dims, uint64_t* view_dims_num);
8080 auto aclGetViewShape = reinterpret_cast<aclGetViewShapeFuncLocal>(aclGetViewShapeAddr);
81- OP_LOG(aclnnNonzeroV2, "EXEC_NPU_CMD_SYNC", self, out);
81+ OP_EXEC_LOG(aclnnNonzeroV2, "EXEC_NPU_CMD_SYNC", self, out);
liu-jiaweikf2025年6月12日评论:

为什么不加在EXEC_NPU_CMD_SYNC里面

这个东西设计的初衷是采集aclnn算子启动前适配层传输下去的信息,因此直接嵌入执行宏相对来说更加合理。aten层面的入参日志后续会有相对应的规划。

likedislike
li_jing_hw成员
2025年6月16日 评论:

/approve

likedislike
AAtomGit-Bot
2025年6月16日 添加了 &nbsp; approved 标签
AAtomGit-Bot
2025年6月16日 合并了Pull Request(通过 API 合并)