Cannot allocate memory in static TLS block

Hi, currently I am facing a problem which states that my tensorflow cannot allocate memory in static TLS block.

“/home/agx_orin/Documents/SP40/.venv/lib/python3.8/site-packages/tensorflow/python/platform/…/…/…/tensorflow_cpu_aws.libs/libgomp-cc9055c7.so.1.0.0: cannot allocate memory in static TLS block”

Before that, I had installed the tensorflow version 2.12.0 by checking the compatibility of tensorflow version.

image

Here is the system information:
Ubuntu 20.04
Jetpack 5.1.2
Tensorflow 2.12.0
CUDA 11.4 (Upgraded to 11.8)
CUDNN 8.6.0
nvidia-l4t-core 35.4.1
GCC 9.4.0
Python 3.8.1

Do you have any solution to solve it?

Hi,

Could you try our TensorFlow prebuilt instead:

Thanks.

Hi, I have followed the instruction previously and installed in my VScode environment. Currently, it can show tensorflow version but cannot be imported. The problem remain the same.

Hi,

Could you try to run it in the console to see if it works?

$ python3
$ import tensorflow as tf
$ tf.__version__

Thanks.

Hi, I have found that the numpy version is incorrect so after I upgraded numpy to version 1.23.1 and it can be imported successfully.

Thank you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.