Posts

Showing posts from April, 2016

Installing CUDA on Ubuntu

I just spent two days trying to install CUDA on Ubuntu. I thought that the documentations make this appear much harder than it needs to be. The main thing in my experience is just that we need to be careful about the driver. Here are the steps I suggest: 1. Install an NVIDIA driver from the ppa:graphics_drivers/ppa. Ensure that the version of your OS is supported by the driver. This information is provided on the ppa website here . 2. Download the correct version of the CUDA runfile. Installing from the package manager did not work for me because it would install an unsupported version of the driver. When installing from the runfile, ensure that you do not install the driver that comes in the package. As long as the restricted driver you downloaded in step one is recent enough, CUDA will work. 3. Set the PATH and LD_LIBRARY_PATH environment variables. 4. After installing cuda, check if /dev/nvidia* files exist and ensure that you set the permissions so that non-root users can use