To install a GPU driver on a GPU-accelerated compute-optimized Linux instance, you can configure automatic installation for the GPU driver when you create an instance, or you can manually install the GPU driver after the instance is created. This topic describes how to manually install a GPU driver for a GPU-accelerated compute-optimized Linux instance.
Background information
GPU drivers are OS-specific. For example, you cannot install a Windows driver on a Linux instance and vice versa.
Note For more information about installing a GPU driver on a GPU-accelerated compute-optimized Windows instance, see Install a GPU driver on a GPU-accelerated compute-optimized Windows instance.
Scenario
This topic applies to the scenarios that meet the following requirements.
- You did not enable Automatically Install GPU Driver when you created the instance, or you cannot find the public images of the required OS types or versions in Alibaba Cloud Marketplace. Note For more information about how to automatically install the GPU driver when you create a GPU-accelerated compute-accelerated Linux instance, see Select an instance type. .
- You want use GPU-accelerated compute-optimized instances in general computing scenarios, such as running deep learning and AI tasks, or to perform graphics-intensive workloads such as OpenGL and Direct3D tasks. We recommend that you install GPU drivers in these scenarios.
- This topic is applicable to GPU-accelerated compute-optimized Linux instance families. For more information about GPU-accelerated compute-optimized instance families, see GPU-accelerated compute-optimized instance families.
Note For more information about scenarios and installation methods of GPU drivers, see Driver installation method.
Procedure
Make sure that you understand the following information before you download a GPU driver:
- If the GPU-accelerated instance that you created belongs to the instance family gn7, you can only install a GPU driver whose version is earlier than 510.47.03.
- If the GPU-accelerated instance that you created belongs to the instance family gn7e, you can use NVIDIA A100 to install CUDA 11.6 toolkit, or a driver whose version is 510.47.03 or later.
- Download the GPU driver.
- Install the GPU driver. The method of installing the GPU driver varies with the operating system of the instance.