Hello,
I have a Jetson TX2.
After setting up the Jetson with the SDK manager tutorial I have installed tensorflow with the following commands with no problems.
sudo apt-get update
sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev
sudo apt-get install python3-pip
sudo pip3 install -U pip testresources setuptools
sudo pip3 install -U numpy==1.16.1 future==0.17.1 mock==3.0.5 keras_preprocessing==1.0.5 gast==0.2.2 enum34 futures protobuf
sudo apt-get install libhdf5-dev
sudo pip3 install -U h5py==2.9.0
sudo pip3 install -U keras_applications==1.0.8
sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v43 tensorflow-gpu
When opening python3 on the terminal and importing tensorflow the following errors appear.
2020-02-07 13:36:56.968153: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcudart.so.10.0'; dlerror: libcudart.so.10.0: cannot open shared object file: No such file or directory
2020-02-07 13:36:56.968388: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcudart.so.10.0'; dlerror: libcudart.so.10.0: cannot open shared object file: No such file or directory
And then a Segmentation fault happens.
What else do I have to do?
Hi,
Here are two thing need you to check first:
1. Do you flash TX2 with JetPack4.3 since the TensorFlow package is built on v43.
2. Do you also install the SDK components from the sdkmanager.
If yes, could you help to check if CUDA is well-installed on your environment?
$ dpkg -l | grep cudart
3. Could you check if this command helps?
$ export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
Thanks.
I would try to locate the file, e.g with:
sudo apt install mlocate -y
sudo updatedb
locate libcudart.so
Then I would check if the file is in the PATH and would adjust it or use “ln -s” or similar.
I would try to locate the file, e.g with:
sudo apt install mlocate -y
sudo updatedb
locate libcudart.so
Then I would check if the file is in the PATH and would adjust it or use “ln -s” or similar.
I can not locate the file. It seems it is not installed.
Hi,
Could you run the sdkmanager again and make sure all the components are well-installed?
Thanks.
I have done so and the sdkmanager says everything is installed correctly.
I am installing it from and to an Ubuntu 16.04 and I am not updating the software since I read it would cause problems.
Hi,
Sorry for the late update.
Do you meet any error when running the sdkmanager ?
If not, you should be able to locate the file with this command:
$ dpkg -l | grep cudart
Please noticed that you will need to setup the Linux after flashing.
The SDK component cannot be installed before the Linux setup.
Thanks.