Ubuntu – How to make Nvidia CUDA work? (for GPU rendering in Blender)

blendercudanvidia

I'm trying to get CUDA (although not sure exactly what it is) to work in Ubuntu for GPU rendering in the Blender 3D modelling program. On Windows 7 64-bit, it works flawlessly. In Ubuntu, I can't enable the GPU processing features in Blender. I'm assuming Nvidia's CUDA needs to be installed.

Can this be done? If so, can I get the details on how to do it? Thanks!

Running Ubuntu GNOME 15.04 x64 w/ GNOME 3.14, Nvidia GTX 660 and Nvidia proprietary drivers.

Best Answer

To install CUDA from the standard repositories do a:

sudo apt-get install nvidia-cuda-toolkit nvidia-modprobe

This will currently install V6.5 of CUDA. At the time of this writing V7.0 is the latest and can be had straight from the nVidia repositories. Read this warning before you head to the nVidia repositories.