Merged
[feat] pin_memory support PCIE_through HVA #30210
gleaming-sparkAdd on Jan 29
[feat] pin_memory support PCIE_through HVA #30210
Merged
gleaming-sparkAdd on Jan 29
gleaming-spark
gleaming-sparkCollaborators
Jan 29

【合入来源】

(如有)请关联需求文档/issue链接

【修改方案】

请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列
如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容)
1、将内存申请接口从aclrtMallocHost改为aclrtMallocHostWithCfg,并通过开关控制是否进行host register
2、对接口功能进行版本兼容性处理,保证向下兼容。

【资料变更】

请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及”
涉及,pr中已修改https://gitcode.com/Ascend/pytorch/pull/30210

【接口变更】

请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及”
不涉及

【功能验证】

说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤
新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图
使用现有的pin_memory()接口用例覆盖即可,即:
1、创建普通的cpu tensor,调用pin_memory()接口无异常;
2、调用is_pinned()接口:普通cpu tensor返回False;pin tensor返回True
image.png

【CheckList】

PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

likedislike
Pull Request has been successfully merged by ascend-robot.
(Thank you for gleaming-spark's contribution.)
gleaming-sparkgleaming-sparkCollaborators
Jan 29 Created pull request, commit fca8b885
ascend-robot
ascend-robotCollaborators
Jan 29 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

以下是根据您提交的修改文件推荐的Reviewer和Committer序列,需各模块评审通过后方可合入.

Module List Reviewers Committers
repo-Ascend/pytorch liwei386, chenhao_1209, guoguanghao, SCh_zx, liangsongwei chenhao_1209, wangchao285, medivh-x, shaoyf, wasd1111222
likedislike
ascend-robot
ascend-robotCollaborators
Jan 29 Comments:

以下是根据您提交的修改文件推荐的Reviewer和Committer序列,需各模块评审通过后方可合入

Module List Reviewers Committers
repo-Ascend/pytorch shaoyf, kuhn7, wangqiang160, huangyunlong2022, anyrenwei shaoyf, wangchao285, wangqiang160, guoqi1024, medivh-x
likedislike
ascend-robotascend-robotCollaborators
Jan 29 Added label: stat/needs-squash
155 messages are collapsed here。 See more
wbigat
wbigatCollaborators
Feb 6 Comments:

/approve

likedislike
fuyong
fuyongCollaborators
Feb 6 Comments:

/approve

likedislike
ascend-robotascend-robotCollaborators
Feb 6 Added label: approved
ascend-robot
ascend-robotCollaborators
Feb 6 Comments:

Review Guide

This Pull-Request Passes Review.
Committers who wrote a comment of /approve are: wangqiang160, wasd1111222.
Reviewers who wrote a comment of /lgtm are: wangqiang160, wasd1111222.

likedislike
ascend-robotascend-robotCollaborators
Feb 6 Merged pull request