gpu版的paddle一直运行不成功,确定cuda安装正确,运行paddle官网安装页面测试程序报paddle.fluid.core.EnforceNotMet: Cannot run operator on place CUDAPlace(0) at [/paddle/paddle/fluid/framework/operator.cc:145]
Created by: silverfly1992
只是将官网安装页面测试程序place = fluid.CPUPlace()改成了place = fluid.CUDAPlace(0) 完整错误代码如下: Traceback (most recent call last): File "/home/silverfly/models/fluid/PaddleCV/deeplabv3+/paddle_test.py", line 73, in train(save_dirname) File "/home/silverfly/models/fluid/PaddleCV/deeplabv3+/paddle_test.py", line 46, in train train_loop(fluid.default_main_program()) File "/home/silverfly/models/fluid/PaddleCV/deeplabv3+/paddle_test.py", line 30, in train_loop exe.run(fluid.default_startup_program()) File "/usr/local/anaconda3/lib/python3.6/site-packages/paddle/fluid/executor.py", line 472, in run self.executor.run(program.desc, scope, 0, True, True) paddle.fluid.core.EnforceNotMet: Cannot run operator on place CUDAPlace(0) at [/paddle/paddle/fluid/framework/operator.cc:145] PaddlePaddle Call Stacks: 0 0x7fd23c8baaf6p paddle::platform::EnforceNotMet::EnforceNotMet(std::exception_ptr::exception_ptr, char const*, int) + 486 1 0x7fd23d6cd892p paddle::framework::OperatorBase::Run(paddle::framework::Scope const&, boost::variant<paddle::platform::CUDAPlace, paddle::platform::CPUPlace, paddle::platform::CUDAPinnedPlace, boost::detail::variant::void, boost::detail::variant::void, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_> const&) + 658 2 0x7fd23c9860f0p paddle::framework::Executor::RunPreparedContext(paddle::framework::ExecutorPrepareContext*, paddle::framework::Scope*, bool, bool, bool) + 224 3 0x7fd23c9867f0p paddle::framework::Executor::Run(paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool) + 128 4 0x7fd23c8a895bp 5 0x7fd23c8d8b80p 6 0x55637a13cb94p _PyCFunction_FastCallDict + 340 7 0x55637a1cc7cep 8 0x55637a1eecbap _PyEval_EvalFrameDefault + 762 9 0x55637a1c5a94p 10 0x55637a1c6941p 11 0x55637a1cc755p 12 0x55637a1eecbap _PyEval_EvalFrameDefault + 762 13 0x55637a1c5daep 14 0x55637a1c6941p 15 0x55637a1cc755p 16 0x55637a1eecbap _PyEval_EvalFrameDefault + 762 17 0x55637a1c5daep 18 0x55637a1c6941p 19 0x55637a1cc755p 20 0x55637a1eecbap _PyEval_EvalFrameDefault + 762 21 0x55637a1c7459p PyEval_EvalCodeEx + 809 22 0x55637a1c81ecp PyEval_EvalCode + 28 23 0x55637a2429a4p 24 0x55637a242da1p PyRun_FileExFlags + 161 25 0x55637a242fa4p PyRun_SimpleFileExFlags + 452 26 0x55637a246a9ep Py_Main + 1598 27 0x55637a10e4bep main + 238 28 0x7fd26b493830p __libc_start_main + 240 29 0x55637a1f5773p