Skip to content

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.

Notes

Note that the following setup is dependent on our specific OS (Ubuntu 14.04) and Video Card (NVIDIA 980 ti)

Install drivers.

  • Add NVIDIA drivers PPA sudo add-apt-repository ppa:graphics-drivers/ppa and install the appropriate one, currently version 367.27.
  • Install the CUDA Toolkit by following the CUDA Quick Start Guide. TLDR:
    1. Install the the CUDA toolkit by using the appropriate installer, deb in our case. sudo dpkg --install cuda-repo-<distro>-<version>.<architecture>.deb
    2. Update apt-get cache sudo apt-get update
    3. Install CUDA sudo apt-get install cuda
    4. Reboot.
    5. Modify the PATH and LD_LIBRARY_PATH BY running the following commands:
      • export PATH=/usr/local/cuda-7.5/bin:$PATH
      • export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:$LD_LIBRARY_PATH
    6. Test that the everything installed correctly by compiling an example.

Clone this wiki locally