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.
Asked
Active
Viewed 3,145 times
3
-
The formulation in this Q&A pair is unclear. Therefore, the as duplicate marked Q&A pair should instead be used. In a shorter time it was able to attract more views. Therefore, it is more visible to the community. I advise to use the duplicate as the primary Q&A pair instead or make this Q&A more clear (e.g. the used language/grammar is bad and additionally, the link below does not point to the table directly. Also which OS compatibility is shown below?). See: https://stackoverflow.com/questions/50622525/which-tensorflow-and-cuda-version-combinations-are-compatible/50622526#50622526 – whiletrue Aug 02 '18 at 11:34
1 Answers
4
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

Yuwen Yan
- 4,777
- 10
- 33
- 63
-
Thanks for adding a canonical Q&A pair for this. [SO] gets bombarded with questions about this and it would be good to have this as an up to date reference which we can use to close the many duplicates that we will undoubtedly get in the future. – talonmies May 21 '18 at 07:01
-
-
The formulation in this Q&A pair is unclear. Therefore, the as duplicate marked Q&A pair should instead be used. In a shorter time it was able to attract more views. Therefore, it is more visible to the community. I advise to use the duplicate as the primary Q&A pair instead or make this Q&A more clear (e.g. the used language/grammar is bad and additionally, the link below does not point to the table directly. Also which OS compatibility is shown below?). See: https://stackoverflow.com/questions/50622525/which-tensorflow-and-cuda-version-combinations-are-compatible/50622526#50622526 – whiletrue Aug 02 '18 at 11:38
-