From http://lifeofaprogrammergeek.blogspot.com/2008/05/cuda-development-in-ubuntu.html

This guide is written to work with a fresh installation of Ubuntu 8.04.1 (Hardy Heron), and sets up CUDA 2.0.

Green means it is a command. You can paste lines into the console with ctrl+shift.

# Install the build tools we need
sudo apt-get install build-essential libglut3-dev -y

#Install the NVidia Drivers
#from http://www.nvidia.com/object/cuda_get.html -> Linux 32 bit
wget http://developer.download.nvidia.com/compute/cuda/2_0/linux/driver/NVIDIA-Linux-x86-177.67-pkg1.run
chmod +x ./NVIDIA-Linux-x86-177.67-pkg1.run
# this will kick you to a terminal (the NVidia installer requires that X be shut down). After you execute this command, hit ctrl+alt+F1, login, and execute the rest of the commands
sudo /etc/init.d/gdm stop
sudo ./NVIDIA-Linux-x86-177.67-pkg1.run
sudo /etc/init.d/gdm start
rm ./NVIDIA-Linux-x86-177.67-pkg1.run
# this next step resolves a driver conflict.
# if we don't do this, the machine will start in low-graphics mode on reboot
# add add 'nv' to DISABLED_MODULES ('DISABLED_MODULES="nv"') and save
sudo gedit /etc/default/linux-restricted-modules-common

# Install the CUDA Toolkit
wget http://developer.download.nvidia.com/compute/cuda/2_0/linux/toolkit/NVIDIA_CUDA_Toolkit_2.0_ubuntu7.10_x86.run
chmod +x NVIDIA_CUDA_Toolkit_2.0_ubuntu7.10_x86.run
sudo ./NVIDIA_CUDA_Toolkit_2.0_ubuntu7.10_x86.run auto
rm NVIDIA_CUDA_Toolkit_2.0_ubuntu7.10_x86.run

# Add environment variables
echo "# CUDA stuff
PATH=\$PATH:/usr/local/cuda/bin
LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/usr/local/cuda/lib
export PATH
export LD_LIBRARY_PATH" >> ~/.bashrc
# restart the terminal for the changes to take effect.

# Install the CUDA SDK
wget http://developer.download.nvidia.com/compute/cuda/2_0/linux/sdk/NVIDIA_CUDA_SDK_2.02.0807.1535_linux.run
chmod +x ./NVIDIA_CUDA_SDK_2.02.0807.1535_linux.run
# press enter at both prompts
./NVIDIA_CUDA_SDK_2.02.0807.1535_linux.run
rm ./NVIDIA_CUDA_SDK_2.02.0807.1535_linux.run

# compile and run an example and be overwhelmed with bliss
cd NVIDIA_CUDA_SDK/
make
~/NVIDIA_CUDA_SDK/bin/linux/release/fluidsGL

Then, for what concern IDL:

-Download GPULib http://www.txcorp.com/technologies/GPULib/gpulib-0.3p7.tar.gz

-Unpack

-./configure --disable-MATLAB

-make

-- LorenzoBusoni - 10 Nov 2008
Topic revision: r1 - 10 Nov 2008, LorenzoBusoni
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback