Difference between revisions of "Cluster der kan alt/Installation af CUDA"

From Teknologisk videncenter
Jump to: navigation, search
m (Installation af cuda)
m (Kommandoer)
Line 1: Line 1:
 
=Installation af cuda=
 
=Installation af cuda=
 
Follow this tutorial: http://www.quantstart.com/articles/Installing-Nvidia-CUDA-on-Ubuntu-14-04-for-Linux-GPU-Computing
 
Follow this tutorial: http://www.quantstart.com/articles/Installing-Nvidia-CUDA-on-Ubuntu-14-04-for-Linux-GPU-Computing
 
=Kommandoer=
 
 
Følgende kommando downloader CUDA fra nvidias hjemmeside, direkte til maskinen istedet for at downloade den til vores maskine og så overføre den efterfølgende.
 
<source lang=cli>
 
wget http://developer.download.nvidia.com/compute/cuda/5_0/rel-update-1/installers/cuda_5.0.35_linux_64_ubuntu11.10-1.run
 
</source>
 
 
 
chmod bruges til at ændre skrive rettighederne, +x står for execution, 
 
<source lang=cli>
 
chmod +x cuda_5.0.35_linux_64_ubuntu11.10-1.run
 
</source>
 
 
 
Installer dependencies
 
<source lang=cli>
 
aptitude install freeglut3-dev build-essential gcc-4.4 g++-4.4 -y
 
ln -s /usr/lib/x86_64-linux-gnu/libglut.so /usr/lib/libglut.so
 
</source>
 
 
 
Følgende kommando starter installationen af CUDA
 
<source lang=cli>
 
./cuda_5.0.35_linux_64_ubuntu11.10-1.run
 
</source>
 
 
 
Hvis den siger der skal genstartes under forløbet, så genstart maskinen og kør installeren igen.
 
tilføj følgende til .bashrc
 
<source lang=cli>
 
export PATH=/usr/local/cuda/bin:$PATH
 
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
 
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/libnvvp/
 
</source>
 
Test ved at lave en make /usr/local/cuda/samples/0_Simple/clock og kør ./clock
 
  
 
=Links=
 
=Links=

Revision as of 17:54, 19 October 2014

Installation af cuda

Follow this tutorial: http://www.quantstart.com/articles/Installing-Nvidia-CUDA-on-Ubuntu-14-04-for-Linux-GPU-Computing

Links