installation and configuration cuda 3.2+ ubuntu 10.4
以下为在ubuntu10.04下install cuda 3.2的个人总结:
section 1:device driver installation
step 1:the Nouveau kernel driver is currently in use by your system,it's uncompatible with the Nvidia driver,you must disable Nouveau driver before proceeding.For some distribution ,Nouveau can be disabled by adding a file in the modprobe configuration directory.The Nvidia driver recommand to add nvidia-insatller-disable-nouveau.conf to "/etc/modprobe.d".The following two lines will be added in the nvidia-insatller-disable-nouveau.conf.
"blacklist nouveau"
"options nouveau modeset=0"
step 2:If you have rebooted,the Nouveau may be enabled for other reasons,such as being included in the system initial ramdisk or initramfs or your x configuration file.In the terminal,input"gedit /etc/modprobe.d/blacklist.conf",add the following statements at the bottom and reserve it.
# diable the nouveau driver to gpu
"blacklist vga16fb"
"blacklist nouveau"
"blacklist rivafb"
"blacklist nvidiafb"
"blacklist rivatv"
and then input "sudo update -initramfs -u" to update the newest initramfs.
step 3:input "sudo apt-get --purge remove nvidia-*" to clear all the nvidia driver correlated to the older version.
step 4:input "sudo gedit /etc/default/grub",when you look the GRUB_COMLINE_LINUX_DEFAULT="quiet splash",replace the "quiet splsh" with "text".And then input"sudo update-grub".The system will boot in the form of text other then visual windows. and then reboot you system.
step 5:input "sudo apt-get --purge remove xserver-xorg-video-nouveau".
step 6:input sh Nvidia-linux-x86-64.run.

section 2:cudatoolkit 3.2 installation
step 1:cd the directory of the cudatoolkit3.2.run
step 2:sh cudatoolkit3.2.run, install path(default /usr/local/cuda),just follow the default way.
step 3:make sure your PATH includes /usr/local/cuda/bin.how to do it ? input "export PATH=/usr/local/cuda/bin:$PATH" or open the file of environment in the /etc/environment.And then append the PATH with"/usr/local/cuda/bin".so the final PATH is :PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/cuda/bin". The former way is temporary solution,it take effect in the current shell.if you start a new shell,it doesn't work.so i strongly advise to use it in next way.Another apect is to make sure your LD_LIBRARY_PATH for 64-bit linux distribution includes /usr/local/cuda/lib64:/usr/local/cuda/lib. how to do it ? one method is to input "export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib:$LD_LIBRARY_PATH".another way is to open the etc/ld.so.conf,append with "/usr/local/cuda/lib64 or /usr/local/cuda/lib".finally,input "ldconfig" and update the /etc/ld.so.cache.there is no better way than the second method.it 's permanent.

section 3:gpucomputingsdk 3.2 installation
step 1:cd the directory of the gpucomputingsdk3.2.run
step 2:sh gpucomputingsdk3.2.run.install path(default ~/NVIDIA_GPU_COMPUTING_SDK).if you install the cudatoolkit successfully, the it will show "located CUDA at /usr/local/cuda,if this correct,choose the default below.enter cuda install path(default /usr/local/cuda),configurating sdk makefile (/root/NVIDIA_GPU_COMPUTING_SDK/C/common/common.mk)".

finally, success of installation above application software.if you want to return the visuable desktop,one way is to input "etc/init.d/gdm start" lead you to your graphic window ;another way is to input "sudo gedit /etc/default/grub",when you look the GRUB_COMLINE_LINUX_DEFAULT="text",replace the "text" with "quiet splash".And then input"sudo update-grub".
以下为在ubuntu10.04下install cuda 3.2的个人总结:

section 1:device driver installation

step 1:the Nouveau kernel driver is currently in use by your system,it's uncompatible with the Nvidia driver,you must disable Nouveau driver before proceeding.For some distribution ,Nouveau can be disabled by adding a file in the modprobe configuration directory.The Nvidia driver recommand to add nvidia-insatller-disable-nouveau.conf to "/etc/modprobe.d".The following two lines will be added in the nvidia-insatller-disable-nouveau.conf.

"blacklist nouveau"

"options nouveau modeset=0"

step 2:If you have rebooted,the Nouveau may be enabled for other reasons,such as being included in the system initial ramdisk or initramfs or your x configuration file.In the terminal,input"gedit /etc/modprobe.d/blacklist.conf",add the following statements at the bottom and reserve it.

# diable the nouveau driver to gpu

"blacklist vga16fb"

"blacklist nouveau"

"blacklist rivafb"

"blacklist nvidiafb"

"blacklist rivatv"

and then input "sudo update -initramfs -u" to update the newest initramfs.

step 3:input "sudo apt-get --purge remove nvidia-*" to clear all the nvidia driver correlated to the older version.

step 4:input "sudo gedit /etc/default/grub",when you look the GRUB_COMLINE_LINUX_DEFAULT="quiet splash",replace the "quiet splsh" with "text".And then input"sudo update-grub".The system will boot in the form of text other then visual windows. and then reboot you system.

step 5:input "sudo apt-get --purge remove xserver-xorg-video-nouveau".

step 6:input sh Nvidia-linux-x86-64.run.



section 2:cudatoolkit 3.2 installation

step 1:cd the directory of the cudatoolkit3.2.run

step 2:sh cudatoolkit3.2.run, install path(default /usr/local/cuda),just follow the default way.

step 3:make sure your PATH includes /usr/local/cuda/bin.how to do it ? input "export PATH=/usr/local/cuda/bin:$PATH" or open the file of environment in the /etc/environment.And then append the PATH with"/usr/local/cuda/bin".so the final PATH is :PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/cuda/bin". The former way is temporary solution,it take effect in the current shell.if you start a new shell,it doesn't work.so i strongly advise to use it in next way.Another apect is to make sure your LD_LIBRARY_PATH for 64-bit linux distribution includes /usr/local/cuda/lib64:/usr/local/cuda/lib. how to do it ? one method is to input "export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib:$LD_LIBRARY_PATH".another way is to open the etc/ld.so.conf,append with "/usr/local/cuda/lib64 or /usr/local/cuda/lib".finally,input "ldconfig" and update the /etc/ld.so.cache.there is no better way than the second method.it 's permanent.



section 3:gpucomputingsdk 3.2 installation

step 1:cd the directory of the gpucomputingsdk3.2.run

step 2:sh gpucomputingsdk3.2.run.install path(default ~/NVIDIA_GPU_COMPUTING_SDK).if you install the cudatoolkit successfully, the it will show "located CUDA at /usr/local/cuda,if this correct,choose the default below.enter cuda install path(default /usr/local/cuda),configurating sdk makefile (/root/NVIDIA_GPU_COMPUTING_SDK/C/common/common.mk)".



finally, success of installation above application software.if you want to return the visuable desktop,one way is to input "etc/init.d/gdm start" lead you to your graphic window ;another way is to input "sudo gedit /etc/default/grub",when you look the GRUB_COMLINE_LINUX_DEFAULT="text",replace the "text" with "quiet splash".And then input"sudo update-grub".

#1
Posted 05/09/2011 10:14 AM   
Scroll To Top