-
Notifications
You must be signed in to change notification settings - Fork 15
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
链接时报错torch_npu::init_npu(std::string const&) #41
Comments
如果是使用libtorch_npu,请使用build_libtorch_npu.py编译获得 |
I also have the same issue. Your libtorch_npu does not contain any version of the symbol |
A Huawei employee said, "This symbol is only provided by libtorch_npu, but not the python package torch_npu". So it should be compiled by ourselves. But there is a possible non-compiling solution: // torch_npu::init_npu(device_index);
aclInit(nullptr);
c10_npu::SetDevice(device_index); |
https://www.hiascend.com/document/detail/zh/Pytorch/60RC2/configandinstg/instg/insg_0007.html |
编译时候报错torch_npu::init_npu(std::string const&)
nm 命令查找libtorch_npu.so,也未找到这个函数
The text was updated successfully, but these errors were encountered: