Trying to setup first time: "Unable to register cuBLAS factory" - already been registered

I’m just trying to setup tensorflow locally for the first time and having a hard time getting it to work. I followed the instructions exactly as on Instalar o TensorFlow com PIP

with a conda environment, I’ve trying running the script:

python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"

and getting the following output:

2022-11-09 20:33:11.233347: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-11-09 20:33:11.328525: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2022-11-09 20:33:11.722392: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: :/home/jonny/miniconda3/envs/tf/lib/:/home/jonny/miniconda3/envs/tf/lib/
2022-11-09 20:33:11.722442: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: :/home/jonny/miniconda3/envs/tf/lib/:/home/jonny/miniconda3/envs/tf/lib/
2022-11-09 20:33:11.722449: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
2022-11-09 20:33:12.235117: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:980] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2022-11-09 20:33:12.239962: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:980] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2022-11-09 20:33:12.240228: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:980] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
[PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]

I’m unsure what to do to fix this, any help is appreciated.

1 Like

@Jonny_B,

2022-11-09 20:33:11.328525: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered

It is a warning to give about incompatibility.This log message is fixed by #56691 and will be included in Tensorflow 2.11.

[PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]

The log above indicates that the code is working properly and can be safely ignored. Thank you!

2 Likes

ah, so that error message being considered an error, and not a warning is what is being fixed?

thanks

1 Like

@Jonny_B,

ah, so that error message being considered an error, and not a warning is what is being fixed?

Yes.

Hi! But there is an error in the log. How to fix it?

1 Like