OSError: (External) Cublas error, `CUBLAS_STATUS_NOT_INITIALIZED`. The cuBLAS library was not initi

Traceback (most recent call last):
  File "main.py", line 20, in <module>
    model.train(
  File "/home/maling/miniconda3/envs/paddle/lib/python3.8/site-packages/paddlex/cv/models/faster_rcnn.py", line 355, in train
    self.net_initialize(
  File "/home/maling/miniconda3/envs/paddle/lib/python3.8/site-packages/paddlex/cv/models/base.py", line 247, in net_initialize
    self.exe.run(startup_prog)
  File "/home/maling/miniconda3/envs/paddle/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1110, in run
    six.reraise(*sys.exc_info())
  File "/home/maling/miniconda3/envs/paddle/lib/python3.8/site-packages/six.py", line 719, in reraise
    raise value
  File "/home/maling/miniconda3/envs/paddle/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1098, in run
    return self._run_impl(
  File "/home/maling/miniconda3/envs/paddle/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1231, in _run_impl
    return self._run_program(
  File "/home/maling/miniconda3/envs/paddle/lib/python3.8/site-packages/paddle/fluid/executor.py", line 1328, in _run_program
    self._default_executor.run(program.desc, scope, 0, True, True,
OSError: (External)  Cublas error, `CUBLAS_STATUS_NOT_INITIALIZED`. The cuBLAS library was not initialized.  (at /paddle/paddle/fluid/platform/cuda_helper.h:98)

解决方法:

1. 查找本机是否有libcublas.so (如果正确安装cuda, 应该会有)

locate libcublas.so

2. (待完善)

你可能感兴趣的:(BUG,linux,cuda)