NVIDIA – Do I Need to Install CUDA Separately After Display Driver?

cudanvidianvidia-geforcenvidia-graphics-cardwindows 10

Is cuda already included in the installation of the graphics card display driver?
The card has 192 cuda cores according to https://www.asus.com/Graphics-Cards/GT710-SL-2GD5/specifications/, and Cuda 3.5 according to https://www.techpowerup.com/gpu-specs/geforce-gt-710.c1990. It obviously supports cuda, thus I was expecting this to be already installed.

Coming from https://stackoverflow.com/questions/9727688/how-to-get-the-cuda-version to find out the cuda version. The shortcuts for Windows 10 of that link do not work for me.

I assume now that cuda needs to be installed separately from https://developer.nvidia.com/cuda-toolkit, is this true?

Best Answer

Result in advance:

Cuda needs to be installed in addition to the display driver in various ways, Tensorflow needs the system install, Pytorch does not (unless you install it from source).

Mind that "CUDA Toolkit" (standalone) and cudatoolkit (conda) are different!

####

Details (only fyi):

Why not just testing an installation that needs cuda to find out. Going to https://pytorch.org/get-started/locally/, you get conda install pytorch torchvision cudatoolkit=10.2 -c pytorch as the installation command in conda prompt. It chooses to install version 10.2. It would not install cuda if that came with the display driver.

The installation then installs a cuda toolkit:

The following NEW packages will be INSTALLED:

cudatoolkit pkgs/main/win-64::cudatoolkit-10.2.89-h74a9793_1

Then we see that the cudatoolkit-10.2.89 | 317.2 MB is probably too large to be plausibly included in the display driver. In C:\Program Files (x86)\NVIDIA Corporation, there are only three cuda-named dll files of a few houndred KB.

p.s.: The mentioned cuda 11.0 in the release notes is just giving us the support information, not the actual installation. I have had a look at the release notes as well. It lists cuda 11.0 under "Software Module Versions", yes. Yet later under "New Features and Other Changes" it just says "Supports CUDA 11.0.", see https://us.download.nvidia.com/Windows/451.67/451.67-win10-win8-win7-release-notes.pdf.

From https://stackoverflow.com/questions/9727688/how-to-get-the-cuda-version:

  • The accepted answer states that you need to install nvidia-cuda-toolkit to run the version commands at all (though referring not to Windows, but it is the same on Windows).
  • The answer of using nvidia-smi to get the version in the top right is rejected as wrong since it only shows which version is supported. It does not show if Cuda is actually installed. @BruceYo comments: [The command nvidia-smi] "will display CUDA Version even when no CUDA is installed."

This suggests again that cuda is not included in the display driver installation.

Related Question