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

请问这个问题怎么解决呢? #1454

Open
yuluzhong opened this issue Nov 8, 2024 · 4 comments
Open

请问这个问题怎么解决呢? #1454

yuluzhong opened this issue Nov 8, 2024 · 4 comments
Assignees

Comments

@yuluzhong
Copy link

CMake Error at cmake/paddle.cmake:90 (message):
Failed to get submodule Paddle', please check your network !
Call Stack (most recent call first):
CMakeLists.txt:22 (include)

@yuluzhong
Copy link
Author

请问我只能一个一个下载然后传到没有网的机器上吗?

@yuluzhong
Copy link
Author

Traceback (most recent call last):
File "/home/ma-user/work/PaddleCustomDevice/backends/npu/build/setup.py", line 140, in
main()
File "/home/ma-user/work/PaddleCustomDevice/backends/npu/build/setup.py", line 99, in main
write_custom_op_api_py()
File "/home/ma-user/work/PaddleCustomDevice/backends/npu/build/setup.py", line 13, in write_custom_op_api_py
op_names = paddle.utils.cpp_extension.extension_utils.load_op_meta_info_and_register_op(libname)
File "/home/ma-user/anaconda3/envs/PyTorch-2.1.0/lib/python3.9/site-packages/paddle/utils/cpp_extension/extension_utils.py", line 162, in load_op_meta_info_and_register_op
core.load_op_meta_info_and_register_op(lib_filename)
RuntimeError: (PreconditionNotMet) The third-party dynamic library (python/paddle_custom_device/libpaddle-custom-npu.so) that Paddle depends on is not configured correctly. (error code is python/paddle_custom_device/libpaddle-custom-npu.so: undefined symbol: ZN13custom_kernel14GatherNdKernelIbN3phi13CustomContextEEEvRKT0_RKNS1_11DenseTensorES8_PS6)
Suggestions:

  1. Check if the third-party dynamic library (e.g. CUDA, CUDNN) is installed correctly and its version is matched with paddlepaddle you installed.
  2. Configure third-party dynamic library environment variables as follows:
  • Linux: set LD_LIBRARY_PATH by export LD_LIBRARY_PATH=...
  • Windows: set PATH by set PATH=XXX;%PATH%
  • Mac: set DYLD_LIBRARY_PATH by export DYLD_LIBRARY_PATH=... [Note: After Mac OS 10.11, using the DYLD_LIBRARY_PATH is impossible unless System Integrity Protection (SIP) is disabled.] (at /paddle/paddle/phi/backends/dynload/dynamic_loader.cc:340)

make[2]: *** [CMakeFiles/python_package.dir/build.make:79: python/.timestamp] Error 1
make[1]: *** [CMakeFiles/Makefile2:345: CMakeFiles/python_package.dir/all] Error 2
make: *** [Makefile:101: all] Error 2

  • make_error=2
  • '[' 2 '!=' 0 ']'
  • echo 'Make Error Found !!!'
    Make Error Found !!!
  • exit 7
    这是什么错误,请问怎么解决呢?

@cmcamdy
Copy link

cmcamdy commented Nov 12, 2024

问题1: 如果机器没有网,确实只能这么干
问题2: 看这个,ZN13custom_kernel14GatherNdKernelIbN3phi13CustomContextEEEvRKT0_RKNS1_11DenseTensorES8_PS6,这个函数没有实现(大概率是没链接到或者没实例化)

@yuluzhong
Copy link
Author

问题1: 如果机器没有网,确实只能这么干 问题2: 看这个,ZN13custom_kernel14GatherNdKernelIbN3phi13CustomContextEEEvRKT0_RKNS1_11DenseTensorES8_PS6,这个函数没有实现(大概率是没链接到或者没实例化)

第二个问题该怎么解决呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants