nvidia -smi
nvcc --version
cat /usr/include/cudnn.h | grep CUDNN_MAJOR -A 2
sudo apt-mark hold libcudnn7 libcudnn7-dev libcudnn7-doc
sudo apt-get install cuda-command-line-tools-9-0
sudo gedit ~/.bashrc
를 통해 경로 추가
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}/usr/local/cuda/extras/CUPTI/lib64
virtualenv --system-site-packages ENVNAME # for Python 2.7
virtualenv --system-site-packages -p python3 ENVNAME # for Python 3.n
source ~/ENVNAME/bin/activate
easy_install -U pip
pip install --upgrade tensorflow-gpu # for Python 2.7 and GPU
pip3 install --upgrade tensorflow-gpu # for Python 3.n and GPU
python
실행import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
Hello, TensorFlow!
출력되는 지 확인