已合并
!9425 Provide interface such as getDeviceStatus, resetPeakStats for NP… #22643
AtomGit-Bot创建于 2025年7月3日
!9425 Provide interface such as getDeviceStatus, resetPeakStats for NP… #22643
已合并
AtomGit-Bot创建于 2025年7月3日
refs/pull/22643/head合入到master
AtomGit-Bot
2025年7月3日
  1. !9425 Provide interface such as getDeviceStatus, resetPeakStats for NP…

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:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewers:

likedislike
Pull Request已成功合入, 合并人@
(感谢 AtomGit-Bot 的贡献)
atlasaccount1
atlasaccount1
2025年7月3日 评论:
AAtomGit-Bot
2025年7月3日 添加了 &nbsp; ascend-cla/yes 标签
AAtomGit-Bot
2025年7月3日 强制推送 了代码
atlasaccount1atlasaccount1
2025年7月3日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年7月3日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2025年7月4日 评论:

流水线任务触发成功,正在执行,请稍候。 任务链接[cb984b0463674962acd9f66613b8255a]

likedislike
atlasaccount1atlasaccount1
2025年7月4日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2025年7月4日 评论:

/torch_npu/csrc/npu/NPUPluggableAllocator.cpp

likedislike
atlasaccount1atlasaccount1
2025年7月4日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年7月4日 添加了 &nbsp; ci-pipeline-failed 标签
AAtomGit-Bot
2025年7月5日 强制推送 了代码
atlasaccount1atlasaccount1
2025年7月5日 移除了 &nbsp; ci-pipeline-failed 标签
atlasaccount1atlasaccount1
2025年7月5日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年7月5日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2025年7月5日 评论:

流水线任务触发成功,正在执行,请稍候。 任务链接[35e248dc136c461eac6ae9cfe6265a72]

likedislike
atlasaccount1atlasaccount1
2025年7月5日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2025年7月5日 评论:

/torch_npu/csrc/npu/NPUPluggableAllocator.cpp

likedislike
atlasaccount1atlasaccount1
2025年7月5日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年7月5日 添加了 &nbsp; ci-pipeline-failed 标签
atlasaccount1
atlasaccount1
2025年7月5日 评论:

ut failed

likedislike
atlasaccount1
atlasaccount1
2025年7月5日 评论:

流水线任务触发成功,正在执行,请稍候。 任务链接[15e722db3e984e6a935bbcd11a2d637a]

likedislike
atlasaccount1atlasaccount1
2025年7月5日 添加了 &nbsp; ci-pipeline-running 标签
atlasaccount1atlasaccount1
2025年7月5日 移除了 &nbsp; ci-pipeline-failed 标签
atlasaccount1
atlasaccount1
2025年7月5日 评论:

/torch_npu/csrc/npu/NPUPluggableAllocator.cpp

likedislike
atlasaccount1atlasaccount1
2025年7月5日 添加了 &nbsp; ci-pipeline-passed 标签
atlasaccount1atlasaccount1
2025年7月5日 移除了 &nbsp; ci-pipeline-running 标签
atlasaccount1
atlasaccount1
2025年7月5日 评论:
任务名称 状态 详情 日志 出包
codecheck SUCCESS >>> N/A
codecheck_scan SUCCESS >>> N/A
checkerro SUCCESS >>> N/A
codecheck_ftd SUCCESS >>> N/A
jump_url SUCCESS >>> N/A
Build_X86_USE_CXX_ABI_GCC13 SUCCESS >>> >>>
Build_LibTorch_USE_CXX_ABI_GCC13 SUCCESS >>> >>>
Build_ARM_USE_CXX_ABI_GCC13 SUCCESS >>> >>>
UT_X86_Part_01 SUCCESS >>> N/A
UT_X86_Part_02 SUCCESS >>> N/A
跳过测试用例  
UT失败过  
流水线链接   点此跳转
likedislike
dilililiwhy1
2025年7月7日 评论:

/approve

likedislike
AAtomGit-Bot
2025年7月7日 添加了 &nbsp; lgtm 标签
yuhaiyan82025年7月7日进行代码检视1
test/cpp_extensions/pluggable_allocator_extensions.cpp
@@ -33,0 +38,4 @@
38+ 
39+void my_reset_peak_status(int device)
40+{
41+ std::cout<<"resetPeakStatus success!"<<std::endl;
yuhaiyan82025年7月7日评论:

这样打印,打屏日志应该看不到

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