1.CUBLAS_STATUS_NOT_INITIALIZED

2.tensorflow/stream_executor/cuda/cuda_blas.cc:443] failed to create cublas handle: CUBLAS_STATUS_NOT__INITIALIZED

TensorFlow Bug记录

3.

tensorflow.python.framework.errors_impl.InternalError: <exception str() failed>

解决办法

在Stack overflow,发现了一篇帖子,完美解决问题,链接如下:

https://stackoverflow.com/questions/45515142/tensorflow-gpu-is-not-working-with-blas-gemm-launch-failed

具体做法:

sudo rm -rf ~/.nv/

问题解决

TensorFlow Bug记录

 这类问题。对我来说,它与Nvidia驱动程序更新同时发生。所以我觉得是驱动的问题。但是换驱动没有效果。最终对我起作用的是清理Nvidia缓存:
sudo rm -rf ~/.nv/
在Nvidia开发者论坛上找到了这个建议:https://devtalk.nvidia.com/default/topic/1007071/cuda-setup-and-installation/cuda-error-when-running-matrixmulcublas-sample-ubuntu-16-04/post/516922323/
我怀疑在驱动程序更新期间,那里仍然有一些旧版本的编译文件不兼容,甚至在更新过程中被损坏。撇开假设不谈,这为我解决了问题。

 

相关文章:

  • 2021-05-25
  • 2021-10-18
  • 2021-05-25
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2021-11-26
  • 2021-12-28
  • 2021-08-10
相关资源
相似解决方案