1. Install g++ and some dev stuff
#apt-get install g++ (I needed it for compiling the SDK examples)
#apt-get install mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libxi-dev libxmu-dev glutg3-dev libglut-dev (for SDK)
(完全不知道第二個安裝的是什麼,nvidia cuda 安裝說明也沒有寫,但是debian的光碟有這些)
2. Install the cudatoolkit(default install paht [/usr/src],auto make dir cuda)
#sh cudatoolkit_3.0_linux_64_ubuntu9.04.run
3.add path for cudatookit
#export PATH=/usr/local/cuda/bin:$PATH
#export LD_LIBRARY_PATH=/usr/local/cuda/lib:$LD_LIBRARY_PATH (for 64-bit: export
LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH)
or add in user .brashrc file
#source ~/.brashrc
4.check
#nvcc --version
install cudatookit END
5.intsall SDK
#sh gpucomputingsdk3.0_linux.run(default [/home/USER/NVIDIA_GPU_Computing_SDK])
6. Go to /home/USER/NVIDIA_GPU_Computing_SDK/C and run 'make'
#cd USER/NVIDIA_GPU_Computing_SDK/C
#make
(some warnings will be shown, but the examples will run
After the compilation you find the binarys in [/home/USER/NVIDIA_GPU_Computing_SDK/C/bin])
7.source code in /home/USER/NVIDIA_GPU_Computing_SDK/C/src
END
備註:
此文章參考 NVIDIA forums
作者為:Lucas
版塊:CUDA in linux
NVIDIA Display driver install for Debian
Prepare intsall some softwares:
apt-get install gcc-4.1
apt-get install emacs
1.check the linux version ( In my case )
#cat /proc/version
Linux versoin 2.6.26-2-amd64 (Debian 2.6.26-24)(dannf@debian.org)(gcc
version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25) #1 SMP Sun Jun 20
20:16:30 UTC 2010
2.Download the NVIDIA_Driver for my case,and place /root
3.install the source files for my kernel
#apt-cache search linux-source*
#apt-get install install linux-source-2.6.26
#apt-cache search linux-headers*
#apt-get install install linux-headers-2.6.26-2-amd64
4.untar and make link (if don't link step,when install driver will specify
the kernel path)
#tar xjvf /usr/src/linux-source-2.6.26.tar.bz2
#ln -s /usr/src/linux-source-2.6.26 /usr/src/linux
#ln -s /usr/src/linux-headers-2.6.26-2-amd64 /usr/src/headers
5.Set the environment variable CC to the gcc version of that one used to
compile the kernel
#export CC="gcc-4.1"
6.install NVIDIA driver
#/etc/init.d/gdm stop
#sh devdriver_3.0_linux_64_195.36.15.run
in some web , i see a article , choose update NO,other choose YES.I don't
why
#shutdown -r now(reboot)
END....
7.but my xwindow appear error....
#emacs /etc/X11/xorg.conf
in Screen section part
add
Option "NoPowerConnectorCheck"
save and leave
8.restart X
#/etc/init.d/gdm restart
9.if see Mark "NVIDAI",when start Xwindow
success!
TURE END.........
破英文,用力笑吧= =
備註:
此文章參考 NVIDIA forums
作者為:Lucas
版塊:CUDA in linux
apt-get install gcc-4.1
apt-get install emacs
1.check the linux version ( In my case )
#cat /proc/version
Linux versoin 2.6.26-2-amd64 (Debian 2.6.26-24)(dannf@debian.org)(gcc
version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25) #1 SMP Sun Jun 20
20:16:30 UTC 2010
2.Download the NVIDIA_Driver for my case,and place /root
3.install the source files for my kernel
#apt-cache search linux-source*
#apt-get install install linux-source-2.6.26
#apt-cache search linux-headers*
#apt-get install install linux-headers-2.6.26-2-amd64
4.untar and make link (if don't link step,when install driver will specify
the kernel path)
#tar xjvf /usr/src/linux-source-2.6.26.tar.bz2
#ln -s /usr/src/linux-source-2.6.26 /usr/src/linux
#ln -s /usr/src/linux-headers-2.6.26-2-amd64 /usr/src/headers
5.Set the environment variable CC to the gcc version of that one used to
compile the kernel
#export CC="gcc-4.1"
6.install NVIDIA driver
#/etc/init.d/gdm stop
#sh devdriver_3.0_linux_64_195.36.15.run
in some web , i see a article , choose update NO,other choose YES.I don't
why
#shutdown -r now(reboot)
END....
7.but my xwindow appear error....
#emacs /etc/X11/xorg.conf
in Screen section part
add
Option "NoPowerConnectorCheck"
save and leave
8.restart X
#/etc/init.d/gdm restart
9.if see Mark "NVIDAI",when start Xwindow
success!
TURE END.........
破英文,用力笑吧= =
備註:
此文章參考 NVIDIA forums
作者為:Lucas
版塊:CUDA in linux
訂閱:
文章 (Atom)