Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined symbol问题 #69403

Closed
yuluzhong opened this issue Nov 14, 2024 · 2 comments
Closed

undefined symbol问题 #69403

yuluzhong opened this issue Nov 14, 2024 · 2 comments
Assignees
Labels
status/close 已关闭 type/build 编译/安装问题

Comments

@yuluzhong
Copy link

yuluzhong commented Nov 14, 2024

问题描述 Issue Description

ValueError: (InvalidArgument) Fail to open library: /home/ma-user/anaconda3/envs/PyTorch-2.1.0/lib/python3.9/site-packages/paddle_custom_device/libpaddle-custom-npu.so with error: /home/ma-user/anaconda3/envs/PyTorch-2.1.0/lib/python3.9/site-packages/paddle_custom_device/libpaddle-custom-npu.so: undefined symbol: ZN13custom_kernel14GatherNdKernelIbN3phi13CustomContextEEEvRKT0_RKNS1_11DenseTensorES8_PS6
[Hint: dso_handle should not be null.] (at /paddle/paddle/fluid/platform/init.cc:152)
各位老师们,请问这个问题怎么解决呢

版本&环境信息 Version & Environment Information

芯片型号 昇腾 910B
我的gcc版本是8.4.0
架构为arm
CANN-8.0.RC1.alpha002
系统为Linux notebook-558dd96e-c505-43fa-a4a1-376b14b047ff 4.19.90-vhulk2211.3.0.h1543.eulerosv2r10.aarch64 #1 SMP Tue Jun 6 07:58:07 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

@yuluzhong yuluzhong added status/new-issue 新建 type/build 编译/安装问题 labels Nov 14, 2024
@xiaoguoguo626807
Copy link
Contributor

是按照这个文档编译安装的吗,看起来是没有设置"CUSTOM_DEVICE_ROOT"路径为npu 的路径
https://github.com/PaddlePaddle/PaddleCustomDevice/blob/develop/backends/npu/README_cn.md

@xiaoguoguo626807
Copy link
Contributor

xiaoguoguo626807 commented Nov 15, 2024

编译的时候加一下
image
试试, 或者检查一下这个路径下是不是有libpaddle-custom-npu.so

@paddle-bot paddle-bot bot added status/close 已关闭 and removed status/new-issue 新建 labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/close 已关闭 type/build 编译/安装问题
Projects
None yet
Development

No branches or pull requests

3 participants