-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.
6条答案
按热度按时间qc6wkl3g1#
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网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!
flseospp2#
Paddle does not support AMD GPU now. And the pull request in reviewing now. Please wait for it.
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.
vaj7vani4#
Can you give your cmake command and Paddle's commit?
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);
^~~~~~~~~~~~~~~~~~~~~
....
hrysbysz6#
This
CastPyHandleToVarBase
function was added with v2.0.0-rc1, not sure if this function should be cherry-pick to v1.8.