Run the following commands to check whether the installation is successful:Ĭd /usr/local/cuda/samples/1_Utilities/deviceQueryDrv/.cuda_ a.b.cc_xxx.yy _n -toolkit -samples -silent -override -tmpdir=/tmp/
Run the following command to install the CUDA Toolkit:.Run the following command to change the permission to the installation package:.Download CUDA Toolkit installation package cuda_ a.b.cc_xxx.yy _n from, and upload this package to the /tmp directory on the BMS.Run the following command to delete the installation package:.Run the following command to install the NVIDIA GPU driver:.run from, and upload this package to the /tmp directory on the BMS.įigure 1 Searching for the NVIDIA GPU driver package (CentOS 7.4) Download NVIDIA GPU driver installation package NVIDIA-Linux-x86_64- xxx.yy.If you selected a specified version of NVIDIA GPU driver rather than a version contained in the CUDA Toolkit, perform this step. (Optional) Install the NVIDIA GPU driver.(Optional) If the X service is running, run the systemctl set-default multi-user.target command and restart the BMS to enter multi-user mode.Run the reboot command to restart the BMS.Mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bakĭracut -v /boot/initramfs-$(uname -r).img $(uname -r) Run the following commands to back up and reconstruct initramfs:.Add blacklist nouveau to the end of the /etc/modprobe.d/nf file.If the Nouveau driver has been installed and loaded, perform the following operations to add the Nouveau driver to the blacklist to avoid conflicts: (Optional) Add the Nouveau driver to the blacklist.(Optional) If the gcc, gcc-c++, make, and kernel-devel dependency packages do not exist, run the following commands to install the gcc, gcc-c++, make, and kernel-devel tools:.