Paddle1.8/1.8.5 Building failed.

epfja78i  于 2021-12-07  发布在  Java
关注(0)|答案(6)|浏览(278)

-OS: Ubuntu 18.04.5
-CPU: AMD RYZEN 3800XT
-GPU: AMD VEGA VII
-Paddle: Branch 1.8 or release_1.8.5
Configure as: cmake .. -DWITH_GPU=OFF -DWITH_AMD_GPU=ON -DPY_VERSION=3.6.0 -DWITH_NCCL=OFF -DCMAKE_MODULE_PATH=/opt/rocm/hip/cmake
Building command: make -j10
Error Message:
/home/guqin/Documents/Github/Paddle/paddle/fluid/pybind/op_function_impl.h: In function ‘std::shared_ptrpaddle::imperative::VarBase paddle::pybind::imperative_pad_constant_like(const pybind11::handle&, const pybind11::handle&, const pybind11::args&)’:
/home/guqin/Documents/Github/Paddle/paddle/fluid/pybind/op_function_impl.h:6458:12: error: ‘CastPyHandleToVarBase’ was not declared in this scope
auto X = CastPyHandleToVarBase("pad_constant_like", "X", 0, X_, false);

On 2.x, it builds OK. And the function "CastPyHandleToVarBase" could be found in paddle/fluid/pybind/op_function.h. But in 1.x, it's not there.

qc6wkl3g

qc6wkl3g1#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

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 APIFAQGithub Issue and AI community to get the answer.Have a nice day!

flseospp

flseospp2#

Paddle does not support AMD GPU now. And the pull request in reviewing now. Please wait for it.

wko9yo5t

wko9yo5t3#

Yes, but it has problems in building not only for ROCM, but also for CPU version, while 2.x does not have problems in building.

vaj7vani

vaj7vani4#

Can you give your cmake command and Paddle's commit?

rjjhvcjd

rjjhvcjd5#

Here it is:
commit 967c3fe (HEAD -> rel1.8, origin/release/1.8)
cmake .. -DPY_VERSION=3.6.0 -DWITH_AVX=OFF -DWITH_GPU=OFF
-- commit: 967c3fe
-- branch: rel1.8
-- Configuring done
-- Generating done
-- Build files have been written to: /home/guqin/Documents/Github/Paddle/build_cpu
...
/home/guqin/Documents/Github/Paddle/paddle/fluid/pybind/op_function_impl.h: In function ‘std::tuple<std::shared_ptrpaddle::imperative::VarBase, std::shared_ptrpaddle::imperative::VarBase > paddle::pybind::imperative_target_assign(const pybind11::handle&, const pybind11::handle&, const pybind11::args&)’:
/home/guqin/Documents/Github/Paddle/paddle/fluid/pybind/op_function_impl.h:7587:12: error: ‘CastPyHandleToVarBase’ was not declared in this scope
auto X = CastPyHandleToVarBase("target_assign", "X", 0, X_, false);
^~~~~~~~~~~~~~~~~~~~~
....

hrysbysz

hrysbysz6#

This CastPyHandleToVarBase function was added with v2.0.0-rc1, not sure if this function should be cherry-pick to v1.8.

Print user-friendly error message in core.ops (#26261)

* print user-friendly error message

* adjust error sumary

 develop (#26261)  v2.0.0-rc1 
…
 v2.0.0-beta0
@zhiqiu
zhiqiu committed on 17 Aug

相关问题