Merged
【mspti_master】测试用例完善 #178
hewenboAdd on Aug 20
【mspti_master】测试用例完善 #178
Merged
Merged fromDeleted :masterintoAscend/msptimaster
Pull Request has been successfully merged by ascend-robot.
(Thank you for hewenbo's contribution.)atomgit-bot
Aug 20 Comments:
Aug 20 Comments:
变更摘要
本 PR 主要对 mspti_master 的测试用例(samples 示例程序)进行完善,核心改动是调整各示例 main() 函数中的资源销毁顺序:将 DeInitMspti() 提前到 DeInit(deviceId, &context, &stream) 之前调用,使 MSpti 的卸载先于 ACL 设备上下文与 stream 的销毁,保证清理流程顺序正确。
主要改动
- 调整回调类示例的销毁顺序:在
samples/callback_domain/callback_domain.cpp、samples/callback_mstx/callback_mstx.cpp、samples/mspti_activity/mspti_activity.cpp中,将DeInitMspti()从DeInit()之后移至其之前执行。 - 调整关联追踪类示例的销毁顺序:在
samples/mspti_correlation/mspti_correlation.cpp、samples/mspti_external_correlation/mspti_external_correlation.cpp中,将DeInitMspti()提前到DeInit()之前,后续的PrintCorrelationTrace()/PrintExternalCorrelationTrace()及资源释放逻辑保持不变。 - 调整 mstx 域示例的销毁顺序:在
samples/mspti_mstx_activity_domain/mspti_mstx_activity_domain.cpp中,将DeInitMspti()从MstxDomainDeInit()之后移到DeInit()之前执行,形成DeInitMspti()→DeInit()→MstxDomainDeInit()的清理顺序。


Incorrect?
AtlasAccount
Aug 20 Comments:
Aug 20 Comments:
atomgit-bot
Aug 20 Comments:
Aug 20 Comments:
Aug 20 Added label: ascend-cla/yes
ascend-robot
Aug 20 Comments:
Aug 20 Comments:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-Ascend/mspti | ✅ 陈豪, mei-feiyao (2/2) | ✅ 陈豪 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
hewenbo, thanks for your pull request. All authors of the commits have signed the CLA. 👍


101 messages are collapsed here。 See more
Aug 21 Modify description of pull request
mei-feiyao
Aug 21 Comments:
Aug 21 Comments:
/lgtm


chenhao_1209
Aug 21 Comments:
Aug 21 Comments:
/approve


Aug 21 Added label: approvedlgtm
Aug 21 Merged pull request
PR 合入模板
注:经过自检不涉及的可标注“不涉及”或直接打勾,特殊情况请文字备注。不符合规范的 PR 不允许合入,请(后备)commit 注意。
1. 修改描述
https://gitcode.com/Ascend/mspti/issues/56
2. 功能验证
3. 分支合并要求
4. 代码检视
要求:
检视意见数:____ 条 (请填写本次检视的意见总数,用于commit合入前审视)
5. 安全自检
Python、C++
C++
6. 变更知会