CentOS_Redhat OS

<p><strong>RPM Installation</strong></p> <p><strong>Procedures</strong></p> <p>1.To install DKMS dependencies, follow the instructions on the EPEL website to install EPEL.</p> <p>2.Install repository meta data, clear yum cache and install CUDA:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p> <p>$ sudo rpm --install cuda-repo-&lt;distro&gt;-&lt;version&gt;.&lt;architecture&gt;.rpm</p> <p>$ sudo yum clean expire-cache</p> <p>$ sudo yum install cuda</p> <p>3.Restart the operating system.</p> <p>4.Set the development environment by modifying the PATH and LD_LIBRARY_PATH variables:&nbsp;</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>5.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> <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 configuration file /etc/modprobe.d/blacklist-nouveau.conf with the following content:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p> <p>blacklist nouveau</p> <p>options nouveau modeset = 0</p> <p>(2)&nbsp;&nbsp;&nbsp; Regenerate kernel initramfs:</p> <p>&nbsp;&nbsp;&nbsp; $ sudo dracut --force</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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p> <p>&nbsp;&nbsp;&nbsp; $ sudo sh cuda_ &lt;version&gt; _linux.run --silent</p> <p>4.Create an xorg.conf file:</p> <p>&nbsp;&nbsp;&nbsp; $ 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