Closed engineer1109 closed 2 years ago
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~
Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!
你好,问题已收到,我们先尝试复现一下
This error occurs with commit: https://github.com/PaddlePaddle/Paddle/commit/b294f05472a2faf92cdae352225f4f90d58e82a3 I reproduced it on 4 machines witch different processors architectures (SKX, CLX, CPX, SPR)
develop
-DCMAKE_BUILD_TYPE=Release -DWITH_GPU=OFF -DWITH_MKLDNN=ON -DWITH_TESTING=ON -DWITH_PROFILER=OFF -DWITH_STYLE_CHECK=OFF -DON_INFER=ON -DWITH_INFERENCE_API_TEST=ON -DINFERENCE_DEMO_INSTALL_DIR=/data/PaddlePaddle/pp_models -DPY_VERSION=3.6
OS: Ubuntu18.04 with mkldnn
cmake version: 3.10.2
Compiler: GCC 8.4
It will not happened on release/v2.4. Because v2.4 do not have
~TensorWrapper() { Py_XDECREF(packed_value_); }
Yes, but we are testing the performance and functionality of direct model optimization on the develop branch. This should be fixed asap on this branch.
https://github.com/PaddlePaddle/Paddle/pull/46259 merged and fixed
问题描述 Issue Description
time cmake -DPY_VERSION=3.8 -DWITH_GPU=ON -DWITH_TESTING=ON ..
python的so链接库确实是有的, 但是编译的时候顺序不对 python的位置太靠前,导致后面的libfinal_dygraph_function.a 找不到python的so
make test_egr_ds_grad_tensor_holder VERBOSE=1 -j 16 可以打印链接信息
在eager_deps里写python依赖好像有问题。也可能是CMake的BUG
临时解决方案 paddle/cmake/generic.cmake修改加入${PYTHON_LIBRARIES}
CMAKE VERBOSE make test_egr_ds_grad_tensor_holder VERBOSE=1 -j 16
版本&环境信息 Version & Environment Information