Closed
[Bug]: CANN 8.3.RC1 环境下 import torch 因 aclrtLaunchKernelWithHostArgs undefined symbol 失败 #5144
ErwinnnAdd on  Sep 28Closed at  Oct 8
Erwinnn
Erwinnn
Sep 28 Create

在提交新问题之前,请确保您已经在社区中搜索过相关问题,并使用了社区中提供的资源/工具后,仍未找到满意的解决方式。

⚠️ 安全信息提醒:请仔细检查提供的文本内容,确保其不包含敏感数据信息,包括但不限于:

  • API 令牌或密钥
  • 密码或身份验证凭证
  • 私有网址或接口地址
  • 个人或机密数据
  • ...

在分享配置信息或代码示例时,请将敏感信息脱敏处理,或使用 <TOKEN> 等占位符替代原有内容。

环境信息

🐛 问题描述

在上述 CANN 8.3.RC1 环境使用包含相关改动的 torch_npu 时,执行 import torch 会因 aclrtLaunchKernelWithHostArgs 符号无法解析而失败。错误发生在扩展动态库加载阶段,尚未执行 Fast Launch;该功能默认关闭也不能避免此问题。

欢迎加入社区,感谢您对社区的贡献 🎉!

likedislike
ascend-robotascend-robotCollaborators
Sep 28 Added label: bug
TorchNPU-BotTorchNPU-BotCollaborators
Sep 28 Added label: triage-reviewmodule: core; Removed label: bug
TorchNPU-Bot
TorchNPU-BotCollaborators
Sep 28 Comments:

import torch 时扩展动态库加载因 aclrtLaunchKernelWithHostArgs undefined symbol 失败,属 ACL 接口符号缺失,底层依赖cann,组件为 ACL,归核心/基础类
添加分类标签:module: core。
当前分类由社区bot提供,如分类有误请在评论中回复。

likedislike
ascend-robotascend-robotCollaborators
Sep 28 Added label: bug
TorchNPU-BotTorchNPU-BotCollaborators
Sep 28 Added label: bot-triaged; Removed label: triage-review
TorchNPU-Bot
TorchNPU-BotCollaborators
Sep 28 Comments:

检测到当前 issue 已关联 PR,自动添加标签:bot-triaged

likedislike
ErwinnnErwinnn
Sep 29 Associated pull request
ErwinnnErwinnn
Sep 29 Associated pull request
ErwinnnErwinnn
Sep 29 Associated pull request
ErwinnnErwinnn
Sep 29 Associated pull request
chenrayray
chenrayrayCollaborators
Oct 8 Comments:

因为本单相关实施 PR 已全部结束(5 个已合入、0 个已关闭),按照本轮 issue 整理规则,先关闭此单。

核对的 PR:

如仍有问题或需要继续推进,请重新打开,并补充当前 PyTorch / TorchNPU / CANN 版本、硬件环境、复现步骤及相关日志;需求类请补充尚未完成的具体内容。

likedislike
chenrayraychenrayrayCollaborators
Oct 8 Close issue
chenrayraychenrayrayCollaborators
Oct 8 changed custom state from TODO to DONE
ascend-robotascend-robotCollaborators
Oct 8 Added label: resolved