Ubuntu OS

<p><strong>Debian Installation</strong></p> <p><strong>Procedures</strong></p> <p>1.Install repository metadata, install GPG key, update apt-get cache and install CUDA:</p> <p>$ sudo dpkg --install cuda-repo-&lt;distro&gt;-&lt;version&gt;.&lt;architecture&gt;.deb</p> <p>$ sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/&lt;distro&gt;/&lt;architecture&gt;/7fa2af80.pub</p> <p>$ sudo apt-get update</p> <p>$ sudo apt-get install cuda</p> <p>2.Restart the system to load the NVIDIA driver.</p> <p>3.Modify the PATH and LD_LIBRARY_PATH variables to set the development environment:</p> <p>$ export PATH = / usr / local / cuda- 9.2 / bin $ {PATH:+:$ {PATH}}</p> <p>$ export LD_LIBRARY_PATH = / usr / local / cuda- 9.2 / lib64 \</p> <p>$ {LD_LIBRARY_PATH:+:$ {LD_LIBRARY_PATH} }</p> <p>4.Build and run:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p> <p>$ cuda-install-samples- 9.2 .sh~</p> <p>$ cd~ / NVIDIA_CUDA- 9.2 _Samples / 5_Simulations / nbody</p> <p>$ make</p> <p>$ ./nbody</p> <p>&nbsp;</p> <p><strong>Runfile Installation</strong></p> <p><strong>Procedures</strong></p> <p>1.Disable the Nouveau driver:</p> <p>(1)&nbsp;&nbsp;&nbsp; Create a file /etc/modprobe.d/blacklist-nouveau.conf with the following content:</p> <p>blacklist nouveau</p> <p>options nouveau modeset = 0</p> <p>(2)&nbsp;&nbsp;&nbsp; Regenerate kernel initramfs:</p> <p>$ sudo update-initramfs -u</p> <p>2.Add <strong>3</strong> and <strong>nomodeset</strong> at the end of the system kernel boot parameters to restart the system.</p> <p>3.Run the installer in silent mode:</p> <p>$ sudo sh cuda_ &lt;version&gt; _linux.run --silent</p> <p>4.Create an xorg.conf file:</p> <p>$ sudo nvidia-xconfig</p> <p>5.Restart the system to load the graphical interface.</p> <p>6.Set the development environment by modifying the PATH and LD_LIBRARY_PATH variables:</p> <p>$ export PATH = / usr / local / cuda- 9.2 / bin $ {PATH:+:$ {PATH}}</p> <p>$ export LD_LIBRARY_PATH = / usr / local / cuda- 9.2 / lib64 \</p> <p>$ {LD_LIBRARY_PATH:+:$ {LD_LIBRARY_PATH} }</p> <p>7.Build and run:</p> <p>$ cuda-install-samples- 9.2 .sh~</p> <p>$ cd~ / NVIDIA_CUDA- 9.2 _Samples / 5_Simulations / nbody</p> <p>$ make</p> <p>$ ./nbody</p>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products