0

I am trying to install the newest Tensorflow GPU version to an Ubuntu environment. The Cuda drivers are correctly installed and working, which I can confirm with the following commands:

nvcc --version

With output:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Tue_May__3_18:49:52_PDT_2022
Cuda compilation tools, release 11.7, V11.7.64
Build cuda_11.7.r11.7/compiler.31294372_0

Also, nvidia-smi returns a valid result:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.43.04    Driver Version: 515.43.04    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Tesla V100-SXM2...  On   | 00000000:06:00.0 Off |                    0 |
| N/A   40C    P0    68W / 300W |   9712MiB / 16384MiB |      7%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

It seems I have the Cuda Version 11.7. Creating an empty Conda environment for Python 3.9, I want to install cudatoolkit and cudnn as instructed at https://www.tensorflow.org/install/pip?hl=en:

conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0

However it complains that I do not have the correct Cuda version and won't install:

 - cudatoolkit=11.2 -> __cuda[version='>=11.2.1|>=11|>=11.2|>=11.2.2']

 Your installed CUDA driver is: 11.7

Obviously, my Cuda version meets the requirements, but somehow Conda would not see it. This seems to be a rare error, I didn't saw many similar issues on my search and turned to here. What can be wrong here?

talonmies
  • 70,661
  • 34
  • 192
  • 269
Ufuk Can Bicici
  • 3,589
  • 4
  • 28
  • 57
  • 2
    No, nvidia-smi does not show the installed CUDA version, it shows the highest CUDA version that the driver supports. – Dr. Snoopy Jan 29 '23 at 16:53
  • Could you try again by uninstalling the CUDA 11.7 then reinstalling the CUDA using `conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0`. Let us know if the issue still persists. –  Feb 08 '23 at 11:38

0 Answers0