安装了paddle-gpu,cuda版本10.2,运行fluid.install_check.run_check(),一直报错!
nvidia-smi:
nvcc --version:
错误信息:
Python 3.8.3 (default, Jul 2 2020, 16:21:59)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle.fluid as fluid
>>> fluid.install_check.run_check()
Running Verify Fluid Program ...
/usr/local/anaconda3/lib/python3.8/site-packages/paddle/fluid/framework.py:2383: DeprecationWarning: an integer is required (got type paddle.fluid.core_avx.op_proto_and_checker_maker.OpRole). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
self.desc._set_attr(name, val)
/usr/local/anaconda3/lib/python3.8/site-packages/paddle/fluid/backward.py:300: DeprecationWarning: an integer is required (got type paddle.fluid.core_avx.VarType). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
op_desc._set_attr(name, val)
/usr/local/anaconda3/lib/python3.8/site-packages/paddle/fluid/backward.py:1070: DeprecationWarning: an integer is required (got type paddle.fluid.core_avx.op_proto_and_checker_maker.OpRole). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
new_op_desc._set_attr(op_role_attr_name, backward)
W1120 13:41:03.664346 4151 device_context.cc:338] Please NOTE: device: 0, CUDA Capability: 75, Driver API Version: 11.0, Runtime API Version: 10.2
W1120 13:41:03.665251 4151 device_context.cc:346] device: 0, cuDNN Version: 8.0.
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/anaconda3/lib/python3.8/site-packages/paddle/fluid/install_check.py", line 140, in run_check
test_simple_exe()
File "/usr/local/anaconda3/lib/python3.8/site-packages/paddle/fluid/install_check.py", line 136, in test_simple_exe
exe0.run(startup_prog)
File "/usr/local/anaconda3/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1107, in run
six.reraise(*sys.exc_info())
File "/usr/local/anaconda3/lib/python3.8/site-packages/six.py", line 703, in reraise
raise value
File "/usr/local/anaconda3/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1095, in run
return self._run_impl(
File "/usr/local/anaconda3/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1221, in _run_impl
return self._run_program(
File "/usr/local/anaconda3/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1313, in _run_program
self._default_executor.run(program.desc, scope, 0, True, True,
paddle.fluid.core_avx.EnforceNotMet:
--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
0 paddle::framework::Executor::Run(paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool, std::vector > const&, bool, bool)
1 paddle::framework::Executor::RunPreparedContext(paddle::framework::ExecutorPrepareContext*, paddle::framework::Scope*, bool, bool, bool)
2 paddle::framework::Executor::RunPartialPreparedContext(paddle::framework::ExecutorPrepareContext*, paddle::framework::Scope*, long, long, bool, bool, bool)
3 paddle::framework::UnsafeFastGPUGarbageCollector::UnsafeFastGPUGarbageCollector(paddle::platform::CUDAPlace const&, unsigned long)
4 paddle::framework::GarbageCollector::GarbageCollector(paddle::platform::Place const&, unsigned long)
5 paddle::platform::DeviceContextPool::Get(paddle::platform::Place const&)
6 std::__future_base::_Deferred_state(std::map > >, std::less, std::allocator > > > > >*, paddle::platform::Place)::{lambda()#1}> >, std::unique_ptr > >::_M_complete_async()
7 std::__future_base::_State_baseV2::_M_do_set(std::function ()>*, bool*)
8 std::_Function_handler (), std::__future_base::_Task_setter > >, std::__future_base::_Result_base::_Deleter>, std::thread::_Invoker(std::map > >, std::less, std::allocator > > > > >*, paddle::platform::Place)::{lambda()#1}> >, std::unique_ptr > > >::_M_invoke(std::_Any_data const&)
9 paddle::platform::CUDADeviceContext::CUDADeviceContext(paddle::platform::CUDAPlace)
10 paddle::platform::CUDAContext::CUDAContext(paddle::platform::CUDAPlace const&, paddle::platform::stream::Priority const&)
11 paddle::platform::CublasHandleHolder::CublasHandleHolder(CUstream_st*, cublasMath_t)
12 paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int)
13 std::string paddle::platform::GetTraceBackString(char const*&&, char const*, int)
14 paddle::platform::GetCurrentTraceBackString[abi:cxx11]()
----------------------
Error Message Summary:
----------------------
ExternalError: Cublas error, CUBLAS_STATUS_NOT_INITIALIZED (at /paddle/paddle/fluid/platform/cuda_helper.h:81)
求助啊,这到底什么问题呢?
你的CUDA版本应该是安装错了,Windows只支持10.0
我的是linux的
cuda有一个驱动api就是nvidia-smi里面的 还有一个是nvcc -V显示的运行Api 我的也有这个问题
您怎么解决这个问题的呀