libcudart.so.7.0: cannot open shared object file: No such file or directory
Tensorflow
Tensorflow is an open source library for machine learning. I have installed Tensorflow in my machine. The best tutorial to follow is as usual its own website only. So please use the link:
Tensorflow
Tensorflow is an open source library for machine learning. I have installed Tensorflow in my machine. The best tutorial to follow is as usual its own website only. So please use the link:
Tensorflow
Requirements:
The TensorFlow Python API currently
supports Python 2.7 and Python 3.3+ from source.
Python 3 pip packages to go with the
0.6.0 release.
The GPU version (Linux only) currently
requires the Cuda Toolkit 7.0 and CUDNN 6.5 V2
Pip Installation:
Install pip if it is not already
installed:
# Ubuntu/Linux 64-bit $ sudo apt-get
install python-pip python-dev
Install TensorFlow:
# Ubuntu/Linux 64-bit, CPU only:
$ sudo pip install --upgrade
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-nonelinux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled: $
sudo pip install --upgrade
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-nonelinux_x86_64.whl
Test the TensorFlow installation - (
Linux) Enable GPU Support
If you installed the GPU version of
TensorFlow, you must also install the Cuda Toolkit 7.0 and CUDNN 6.5
V2.
You also need to set theLD_LIBRARY_PATH
and CUDA_HOME environment variables. Consider adding the commands
below to your ~/.bash_profile. These assume your CUDA installation is
in /usr/local/cuda:
export
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64"
export CUDA_HOME=/usr/local/cuda
Run TensorFlow from the Command Line
Open a terminal and type the following
to check :
$ python ... >>> import
tensorflow as tf
>>> hello =
tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print sess.run(hello)
Hello, TensorFlow!
>>> a = tf.constant(10)
>>> b = tf.constant(32)
>>> print sess.run(a + b) 42
>>>
Run a TensorFlow demo model
All TensorFlow packages, including the
demo models, are installed in the Python library. The exact location
of the Python library depends on your system, but is usually :
type :
cd
/usr/local/lib/python2.7/dist-packages/tensorflow
sudo -s python -m
tensorflow.models.image.mnist.convolutional
If you are getting an error as :
libcudart.so.7.0: cannot open shared
object file: No such file or directory
type :
sudo ldconfig
/usr/local/cuda/lib64
libcudart.so.7.0: cannot open shared object file: No such file or directory
Reviewed by Unknown
on
07:54
Rating:
No comments: