To download CUDA, download the CUDA toolkit from the CUDA Downloads site.
Select "Linux"
Select your system's architecture
- Our installation used the "x86_64" architecture
Select "Ubuntu"
Select your Ubuntu version
- Our installation used version "16.04"
Select "runfile (local)" as the installer type.
The CUDA Downloads site can be found here.
NOTE: Steps were copied from https://covijn.com/2016/11/fixing-darknet-opencv3-make-error-convolutional_kernels/
To install CUDA after download, do the following:
Open a terminal and navigate to CUDA's download directory
Run the following command
sudo sh cuda_<your_cuda_version>_linux.run -override
- Select Yes for every prompt
sudo sh Downloads/cuda_8.0.27_linux.run –silent –toolkit –override
export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
sudo nvidia-xconfig
Then install cuDNN (re-install if like us you had it installed before)
Download from https://developer.nvidia.com/rdp/cudnn-download#collapseTwo
do something like:
cd ~/Downloads/
tar xvf cudnn*.tgz
cd cuda
sudo cp */*.h /usr/local/cuda/include/
sudo cp */libcudnn* /usr/local/cuda/lib64/
sudo chmod a+r /usr/local/cuda/lib64/libcudnn*
Only AFTER all above steps install the cuda_8.0.27.1_linux.run:
sudo sh /Downloads/cuda_8.0.27.1_linux.run