预测时出现addle.fluid.core_avx.EnforceNotMet: cudaGetDeviceCount failed in paddle::platform::GetCUDADeviceCount
Created by: littlepan0413
在单卡单机上出现问题,无法运行 paddle.fluid.core_avx.EnforceNotMet: cudaGetDeviceCount failed in paddle::platform::GetCUDADeviceCount: unknown error at [/paddle/paddle/fluid/platform/gpu_info.cc:97]
详细错误信息 File "/home/work/src/event_relation_mt_models.py", line 39, in max_seq_len=max_seq_len, batch_size=batch_size) File "/home/work/paddle_gpu_env/python/lib/python2.7/site-packages/baidu/kgx/models/mt_ernie_classifier.py", line 89, in init self.__start_model() File "/home/work/paddle_gpu_env/python/lib/python2.7/site-packages/baidu/kgx/models/mt_ernie_classifier.py", line 93, in __start_model dev_list = fluid.cuda_places() File "/home/work/paddle_gpu_env/python/lib/python2.7/site-packages/paddle/fluid/framework.py", line 136, in cuda_places device_ids = _cuda_ids() File "/home/work/paddle_gpu_env/python/lib/python2.7/site-packages/paddle/fluid/framework.py", line 101, in _cuda_ids device_ids = six.moves.range(core.get_cuda_device_count()) paddle.fluid.core_avx.EnforceNotMet: cudaGetDeviceCount failed in paddle::platform::GetCUDADeviceCount: unknown error at [/paddle/paddle/fluid/platform/gpu_info.cc:97] PaddlePaddle Call Stacks: 0 0x7f71aba8de10p void paddle::platform::EnforceNotMet::Init<char const*>(char const*, char const*, int) + 352 1 0x7f71aba8e189p paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int) + 137 2 0x7f71adbf70bcp paddle::platform::GetCUDADeviceCount() + 1036 3 0x7f71aba89abap 4 0x7f71abac0d36p 5 0x7f72fa472989p PyEval_EvalFrameEx + 28553 6 0x7f72fa4750bdp PyEval_EvalCodeEx + 2061 7 0x7f72fa472345p PyEval_EvalFrameEx + 26949 8 0x7f72fa4750bdp PyEval_EvalCodeEx + 2061 9 0x7f72fa472345p PyEval_EvalFrameEx + 26949 10 0x7f72fa4750bdp PyEval_EvalCodeEx + 2061 11 0x7f72fa472345p PyEval_EvalFrameEx + 26949 12 0x7f72fa4750bdp PyEval_EvalCodeEx + 2061 13 0x7f72fa3ebf85p 14 0x7f72fa3b9df3p PyObject_Call + 67 15 0x7f72fa3c89cdp 16 0x7f72fa3b9df3p PyObject_Call + 67 17 0x7f72fa427bafp 18 0x7f72fa42446fp 19 0x7f72fa3b9df3p PyObject_Call + 67 20 0x7f72fa46f4a6p PyEval_EvalFrameEx + 15014 21 0x7f72fa4750bdp PyEval_EvalCodeEx + 2061 22 0x7f72fa4751f2p PyEval_EvalCode + 50 23 0x7f72fa489e7cp PyImport_ExecCodeModuleEx + 140 24 0x7f72fa48a1dep 25 0x7f72fa48b0d9p 26 0x7f72fa48bd37p PyImport_ImportModuleLevel + 471 27 0x7f72fa4699ffp 28 0x7f72fa3b9df3p PyObject_Call + 67 29 0x7f72fa46b417p PyEval_CallObjectWithKeywords + 71 30 0x7f72fa46f8c7p PyEval_EvalFrameEx + 16071 31 0x7f72fa4750bdp PyEval_EvalCodeEx + 2061 32 0x7f72fa4751f2p PyEval_EvalCode + 50 33 0x7f72fa49df42p PyRun_FileExFlags + 146 34 0x7f72fa49f2d9p PyRun_SimpleFileExFlags + 217 35 0x7f72fa4b500dp Py_Main + 3149 36 0x7f72f96b2bd5p __libc_start_main + 245 37 0x4007a1p