

Type: ~/NVIDIA_GPU_Computing_SDK/C/bin/linux/release/./fluidsGLĪs you can see on the following picture, it works ! Now, let's test if Cuda is working great. You can check for which version you are using by running the "Additional Drivers" program (System Settings->Hardware->Additional Drivers) and check which version is toggled ON. LINKFLAGS=-L/usr/lib/nvidia-current-updates/ make cuda-install=/opt/cuda NOTE: In case you are using the latest (post-release updates version current-updates) instead of the recommended (version current) Nvidia drivers, then change the LINKFLAGS to read: cd ~/NVIDIA_GPU_Computing_SDK/C LINKFLAGS=-L/usr/lib/nvidia-current/ make cuda-install=/opt/cuda We finally compile: cd ~/NVIDIA_GPU_Computing_SDK/C Update variables, and this on every boot: export PATH=$PATH:/opt/cuda/binĮxport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cuda/lib:/opt/cuda/lib64Įcho 'export PATH=$PATH:/opt/cuda/bin' > ~/.bash_profileĮcho 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cuda/lib:/opt/cuda/lib64' > ~/.bash_profile Press (to use default path), and type /opt when it will ask you: Enter CUDA install path (default /usr/local/cuda): When it will ask you: Enter install path (default ~/NVIDIA_GPU_Computing_SDK): When it will ask you: Enter install path (default /usr/local/cuda, '/cuda' will be appended):Īs before, go to "Desktop", add execution permissions of the gpucomputingsdk downloaded file, and execute it without root permissions: cd ~/Desktop Go to "Desktop", add execution permissions of the cudatoolkit downloaded file, and execute it with root permissions: cd ~/Desktop Let's download and save them on the Desktop. You will have to download two programs: "CUDA Toolkit" and "GPU Computing SDK". Then, install required packages: sudo apt-get install libxi-dev libxmu-dev freeglut3-dev build-essential binutils-gold For Ubuntu versions under 12.04, you will have to install Nvidia driver manually.īe sure your GPU is compatible with Cuda. It is necessary to have a Nvidia proprietary driver up to 295.xx (which can be installed automatically or manually). This document provides instructions to install/remove Cuda 4.2 on Ubuntu 12.04. More info.ĬUDA ( Compute Unified Device Architecture) is a parallel computing architecture developed by Nvidia for graphics processing.

This article needs updating to include the latest versions of Ubuntu.
