HW: Jetson Nano
Platform: Ubuntu 18.04 image from NVIDIA official site.
Based on Step 2-6 of the guideline I got below error again and again.
[ 41%] Building CXX object paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/gru_compute.cc.o
/home/.../paddle/paddle/fluid/operators/math/gru_compute.cc: In instantiation of ‘static void paddle::operators::math::GRUUnitFunctor<paddle::platform::CPUDeviceContext, T>::compute(const paddle::platform::CPUDeviceContext&, paddle::operators::math::GRUMetaValue, int, int, paddle::operators::math::detail::ActivationType, paddle::operators::math::detail::ActivationType, bool) [with T = float]’:
/home/.../paddle/paddle/fluid/operators/math/gru_compute.cc:197:17: required from here
/home/.../paddle/paddle/fluid/operators/math/gru_compute.cc:55:33: error: the compiler can assume that the address of ‘context’ will never be NULL [-Werror=address]
detail::forward_final_output(detail::forward::gru_finalOutput(), value,
frame_size, batch_size, active_node,
origin_mode, &context);
~~~~~~~~~~~~~~~~~~~~~~
......
cc1plus: all warnings being treated as errors
paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/build.make:81: recipe for target 'paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/gru_compute.cc.o' failed
make[2]: [paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/gru_compute.cc.o] Error 1
CMakeFiles/Makefile2:62115: recipe for target 'paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/all' failed
make[1]: [paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
make: *** [all] Error 2
...@...-desktop:~/paddle/build$
What's wrong with this and how can I fix it?
HW: Jetson Nano Platform: Ubuntu 18.04 image from NVIDIA official site.
Based on Step 2-6 of the guideline I got below error again and again.
[ 41%] Building CXX object paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/gru_compute.cc.o /home/.../paddle/paddle/fluid/operators/math/gru_compute.cc: In instantiation of ‘static void paddle::operators::math::GRUUnitFunctor<paddle::platform::CPUDeviceContext, T>::compute(const paddle::platform::CPUDeviceContext&, paddle::operators::math::GRUMetaValue, int, int, paddle::operators::math::detail::ActivationType, paddle::operators::math::detail::ActivationType, bool) [with T = float]’:
/home/.../paddle/paddle/fluid/operators/math/gru_compute.cc:197:17: required from here
/home/.../paddle/paddle/fluid/operators/math/gru_compute.cc:55:33: error: the compiler can assume that the address of ‘context’ will never be NULL [-Werror=address]
detail::forward_final_output(detail::forward::gru_finalOutput(), value,
...... cc1plus: all warnings being treated as errors paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/build.make:81: recipe for target 'paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/gru_compute.cc.o' failed make[2]: [paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/gru_compute.cc.o] Error 1 CMakeFiles/Makefile2:62115: recipe for target 'paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/all' failed make[1]: [paddle/fluid/operators/math/CMakeFiles/gru_compute.dir/all] Error 2 Makefile:148: recipe for target 'all' failed make: *** [all] Error 2 ...@...-desktop:~/paddle/build$