Project Scenario and Problem Description
In the offline environment of the intranet, CUDA has been installed, but the NVIDIA driver version is relatively low, so the NVIDIA driver needs to be updated offline. This article introduces the installation steps.
installation steps
- Download the NVIDIA installation package that matches the system and GPU driver from the official NVIDIA website. The address is as follows:
NVIDIA Driver Download - Copy the downloaded driver to the intranet environment.
- Confirm that appropriate software and dependencies have been installed in the intranet environment, such as Linux kernel header files and build-essential software packages.
- Disable existing NVIDIA drivers and uninstall. The command is as follows:
sudo systemctl stop nvidia-persistenced
sudo systemctl stop nvidia-fabricmanager
sudo apt-get remove --purge '^nvidia-.*'
- Run the installer for the downloaded driver. Execution command:
sudo sh NVIDIA-Linux-x86_64-xxx.xx.run
- Follow the installer's prompts and allow it to make the necessary changes and reboot on your system.
- The instructions to verify that the NVIDIA driver has been successfully installed are as follows:
nvidia-smi
If the NVIDIA driver is installed correctly, you can see the details of the GPUs available in the system, as shown in the figure below