问题
Currently, I need to install gpu version tensorflow on a machine that existing an older version CUDA and cuDNN, and my question is how can I get it done without re-installing CUDA and cuDNN since other package (see pytorch) need it.
回答1:
Check CUDA version with below command according to this post.
$ nvcc --version
Check cuDNN version with below command according to this post.
$ cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
Choose tensorflow-gpu version according to this post
来源:https://stackoverflow.com/questions/50442076/install-gpu-version-tensorflow-with-older-version-cuda-and-cudnn