已合并
feat add c_shim_npu #35292
huangyunlong创建于 5月11日
feat add c_shim_npu #35292
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 huangyunlong 的贡献)5月11日 创建了 pull request,commit 64a19c78
ascend-robot
5月11日 评论:
5月11日 评论:
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
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-Ascend/pytorch | ✅ chujinjin, htchu (2/2) | ✅ chujinjin, htchu (2/1) |
| test | ✅ htchu, chujinjin (2/2) | ✅ chujinjin, htchu (2/1) |
| torch_npu/csrc/inductor | ✅ chujinjin, htchu (2/2) | ✅ chujinjin, htchu (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
huangyunlong2022, thanks for your pull request. All authors of the commits have signed the CLA. 👍


5月11日 添加了label:ascend-cla/yes
ascend-robot
5月11日 评论:
5月11日 评论:
当前仓库存在以下 保护分支 :
| Protected Branch | Version | Release |
|---|---|---|
| master | ||
| v2.11.0 | ||
| v2.7.1 | ||
| v2.9.0 | ||
| v2.10.0 | ||
| v2.12.0 |
评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作
注意:
- /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
- 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭


ascend-robot
5月11日 评论:
5月11日 评论:
Ascend docs pipeline is running...


此处折叠了93条消息 查看更多
5月14日 添加了label:approved
5月14日 添加了label:lgtm
ascend-robot
5月14日 评论:
5月14日 评论:
5月14日 合入了pull request
【合入来源】
【修改方案】
继承社区inductor_fallback_ops,生成npu支持的stable abi,包括NPU,CompositeExplicitAutograd,CompositeExplicitAutogradNonFunctional,CompositeImplicitAutograd等dispatchkey
1、生成at::npu::ops调用供aoti_torch_npu_ops调用,包括Register{dispatchkey}.cpp中的实现和ops_{dispatchkey}_dispatch.h的声明
2、生成c_shim_npu.h和c_shim_npu.cpp,支持aoti_torch_npu_ops等算子接口
【资料变更】
【接口变更】
【功能验证】
【CheckList】