-
Notifications
You must be signed in to change notification settings - Fork 9
Setting Up CUDA Drivers
Christian Memije edited this page Aug 2, 2016
·
2 revisions
This is for those that would like to take advantage of OpenCV's GPU Module and make use of CUDA to increase performance.
Note that the following setup is dependent on our specific OS (Ubuntu 14.04) and Video Card (NVIDIA 980 ti)
- Add NVIDIA drivers PPA
sudo add-apt-repository ppa:graphics-drivers/ppaand install the appropriate one, currently version 367.27. - Install the CUDA Toolkit by following the CUDA Quick Start Guide. TLDR:
- Install the the CUDA toolkit by using the appropriate installer, deb in our case.
sudo dpkg --install cuda-repo-<distro>-<version>.<architecture>.deb - Update apt-get cache
sudo apt-get update - Install CUDA
sudo apt-get install cuda - Reboot.
- Modify the PATH and LD_LIBRARY_PATH BY running the following commands:
export PATH=/usr/local/cuda-7.5/bin:$PATHexport LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:$LD_LIBRARY_PATH
- Test that the everything installed correctly by compiling an example.
- Install the the CUDA toolkit by using the appropriate installer, deb in our case.