已合并
[feat] exposed customed api #31388
[feat] exposed customed api #31388
已合并
culechan创建于 3月4日
culechan
culechan成员
3月4日

【合入来源】

如有社区issue,请关联issue链接
请勿携带内部流程信息(需求链接、问题单、内部issue等)

【修改方案】

对自定义算子做暴露处理

【资料变更】

请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及”

【接口变更】

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

【功能验证】

【CheckList】

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

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 culechan 的贡献)
culechanculechan成员
3月4日 创建了 pull request,commit 553aac02
ascend-robot
ascend-robot成员
3月4日 评论:

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 zqwenn, liwei386 (2/2) zqwenn, liwei386 (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
ascend-robotascend-robot成员
3月4日 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
3月4日 评论:

CLA Signature Pass

culechan, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
AtlasAccount
AtlasAccount成员
3月4日 评论:

问题/功能描述

本次PR旨在解决自定义函数声明缺少导出宏的问题。该问题导致代码生成器生成的自定义函数头文件中声明的函数无法被正确导出,可能引发库无法被外部代码正常链接和调用的风险。

修改方案描述

修改方案的核心是为生成的自定义函数声明添加 TORCH_NPU_API 宏,以确保其具有正确的链接可见性。具体修改了 CustomFunctions.hCustomRedispatch.h 两个代码生成模板,在函数声明前添加该宏,并同步添加了必要的宏定义头文件包含,以保证宏被正确定义。

likedislike
culechan
culechan成员
3月4日 评论:

compile

likedislike
culechan
culechan成员
3月5日 评论:

compile

likedislike
ascend-robotascend-robot成员
3月5日 添加了label:ci-pipeline-running
culechanculechan成员
3月5日 修改了pull request 的描述
ascend-robotascend-robot成员
3月5日 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
3月5日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
3月5日 评论:
流水线 PR-pipeline_pytorch#9311 已完成
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_LibTorch >>>
Build_ARM >>>
Build_ARM_inductor 🛑 >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
开源片段检查 SCA >>>
开发者测试 UT_X86_Part_01 🛑 >>>
UT_X86_Part_02 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_DIST_X86_Part_01 🛑 >>>
UT_DIST_X86_Part_02 🛑 >>>
UT_DIST_X86_Part_03 🛑 >>>
UT_DIST_X86_Part_04 🛑 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
流水线 PR-pipeline_pytorch >>>
likedislike
zhangqiongwen成员
3月5日 评论:

/approve

likedislike
ascend-robotascend-robot成员
3月5日 添加了label:approved
liwei386成员
3月5日 评论:

/approve

likedislike
ascend-robotascend-robot成员
3月5日 添加了label:lgtm
ascend-robot
ascend-robot成员
3月5日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: zqwenn, liwei386.
Reviewers who wrote a comment of /lgtm are: zqwenn, liwei386.

likedislike
ascend-robotascend-robot成员
3月5日 合入了pull request