Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu 14.04 how to install cuda 6.5 without installing nvidia driver

I am working on workstation with CPU core I7 4790 and two GPUs GTX 760 4 GB ram/1152 core the system's memory is 16 GB RAM I have Ubuntu 14.04.1 LTS after many tries and reinstalling Ubuntu many times finally i have correctly installed nvidia driver 340.46 using 3 shell commands ppa xorg-edgers

now i want to install Cuda 6.5 toolkit but in the manual they say that the cuda toolkit installer will also install nvidia Graphics driver

how to prevent the installer from reinstall the graphics driver how to install cuda 6.5 toolkit without reinstalling my graphics driver because i faced many problems until i installed 340.46 correctly

and after successfully installing cuda toolkit 6.5 how to upgrade my graphics driver without disturbing cuda toolkit and reinstall everything from the beginning

like image 804
Belal Medhat Avatar asked Dec 05 '14 00:12

Belal Medhat


People also ask

Can I install CUDA without Nvidia card?

The answer to your question is YES. The nvcc compiler driver is not related to the physical presence of a device, so you can compile CUDA codes even without a CUDA capable GPU.

Do I need to install CUDA drivers?

Cuda needs to be installed in addition to the display driver unless you use conda with cudatoolkit or pip with cudatoolkit. Tensorflow and Pytorch need the CUDA system install if you install them with pip without cudatoolkit or from source.

Does Cudatoolkit install CUDA?

The CUDA Toolkit installs the CUDA driver and tools needed to create, build and run a CUDA application as well as libraries, header files, and other resources.

How do I manually install Nvidia drivers in Ubuntu?

You can install Nvidia drivers either using GUI or CLI method. Open “Software and Updates” app to install install Nvidia driver using GUI. OR type “ sudo apt install nvidia-driver-515 nvidia-dkms-515 ” at the CLI. Reboot the computer/laptop to load the drivers.


1 Answers

If you use the runfile installer method, the toolkit installer will prompt you individually for each of the 3 components:

  1. GPU Driver
  2. CUDA Toolkit
  3. CUDA Samples

So use the runfile installer method, and simply select "no" to the first prompt, if you don't want to install the driver. You can still install the toolkit and samples. You can download the runfile installer from here

and after successfully installing cuda toolkit 6.5 how to upgrade my graphics driver without disturbing cuda toolkit and reinstall everything from the beginning

The driver can always be installed separately by downloading a driver installer package from www.nvidia.com.

If you use a package manager method, it should be possible to install the toolkit without the driver by installing the cuda-toolkit-X.Y package, where X.Y is the CUDA version. Refer to the package manager section of the install guide

like image 72
Robert Crovella Avatar answered Sep 28 '22 11:09

Robert Crovella