python-tensorflowHow do I troubleshoot a BLAS GEMM Launch Failed error in TensorFlow Python Framework?
To troubleshoot a BLAS GEMM Launch Failed error in TensorFlow Python Framework, the following steps should be taken:
-
Check the system requirements: TensorFlow requires a 64-bit version of Python 3.5 or higher.
-
Make sure the correct version of TensorFlow is installed.
-
Check if the system is using the right BLAS library.
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf
tf.test.is_gpu_available(
cuda_only=False,
min_cuda_compute_capability=None
)
Output example
2020-08-12 10:12:45.378621: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2020-08-12 10:12:45.390973: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
2020-08-12 10:12:47.086779: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10
2020-08-12 10:12:47.090041: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libblas.so.3
2020-08-12 10:12:47.091796: W tensorflow/stream_executor/blas/blas_utils.cc:37] No GPU devices available on machine.
True
From the output, we can see that the system is using the correct BLAS library (libblas.so.3).
-
Make sure the environment variables are set correctly.
-
Check if the system is using the right CUDA version.
-
Check if the system is using the right cuDNN version.
-
If all of the above steps have been taken, try reinstalling TensorFlow.
Helpful links
More of Python Tensorflow
- How do I resolve a SymbolAlreadyExposedError when the symbol "zeros" is already exposed as () in TensorFlow Python util tf_export?
- ¿Cómo implementar reconocimiento facial con TensorFlow y Python?
- How can I use Python and TensorFlow to handle illegal hardware instructions in Zsh?
- How can I use YOLOv3 with Python and TensorFlow?
- How can I use Python and TensorFlow to implement YOLOv4?
- How can I use Python and TensorFlow to implement YOLO object detection?
- How do I use TensorFlow 1.x with Python?
- How do I use the Xception model in TensorFlow with Python?
- How can I use Tensorflow 1.x with Python 3.8?
- How can I use TensorFlow with Python 3.11?
See more codes...