If your GPU-accelerated instances are not configured with drivers, you must install NVIDIA drivers to ensure the performance of your instances. The driver types that you can install on the instances may vary based on the scenarios and the instance families. This topic describes how to create GPU-accelerated instances and install NVIDIA drivers on the instances in different scenarios.

Drivers

You can install the following NVIDIA drivers on Alibaba Cloud GPU-accelerated instances:
  • GPU driver: drives physical GPUs.
  • GRID driver: accelerates graphics processing.

Install drivers on vGPU-accelerated instances

The instances of vGPU-accelerated instance families such as vgn6i and vgn5i are configured with vGPUs that are generated from GPU virtualization with mediated pass-through. You can install only GRID drivers on the instances. However, some GPU-related features may be unavailable on the vGPU-accelerated instances because the NVIDIA GRID licenses are not activated for the GPUs that the instances use. In this case, you can use the images in which GRID licenses are activated to create vGPU-accelerated instances. You can also activate GRID licenses to use the GPU-related features. The following information describes driver types that you can install and how to install the drivers.
OS Driver type Scenario Installation method
Windows Server GRID drivers Graphics computing scenarios, such as Open Graphics Library (OpenGL) and Direct3D scenarios
  • We recommend that you search for images that are configured with GRID drivers in Alibaba Cloud Marketplace and use the images to create vGPU-accelerated instances. For example, you can search for Windows Server 2019 DataCenter 64-bit (English) Preinstalled GRID 13 Driver Image or Windows Server 2016 DataCenter 64-bit (English) Preinstalled GRID 13 Driver Image. These images are configured with GRID drivers whose licenses are activated. You do not need to perform additional operations to install the drivers.

    For more information, see Create a Windows GPU-accelerated instance configured with a GRID driver.

  • If you have purchased GRID licenses, we recommend that you purchase only vGPU-accelerated instances that are not configured with drivers. For more information, see Create a GPU-accelerated instance that is not configured with a driver.
    Note After you create the vGPU-accelerated instances, you must install GRID drivers on the instances. To install the drivers, contact your license provider.
Linux, such as Alibaba Cloud Linux, CentOS, Ubuntu, or SUSE Linux GRID drivers Common computing scenarios, such as deep learning and AI

To obtain a GRID license, submit a ticket.

Install drivers on GPU-accelerated compute-optimized instances

GPU-accelerated compute-optimized instance families are classified into the following types:
  • GPU-accelerated compute-optimized instance family: gn7i, gn7, gn6i, gn6e, gn6v, gn5i, and gn5
  • GPU-accelerated compute-optimized ECS Bare Metal Instance family: ebmgn7i, ebmgn7, ebmgn6e, ebmgn6v, ebmgn6i, ebmgn5, and ebmgn5i
Note The instances of gn7 and ebmgn7 instance families are suitable only for common computing scenarios, such as deep learning, AI, and scientific computing. You must install GPU drivers on the instances.
The following information describes the drivers that you can install and how to install the drivers in different scenarios:
  • Common computing scenarios such as deep learning, AI, and scientific computing
    OS Driver type Installation method
    Linux, such as Alibaba Cloud Linux, CentOS, Ubuntu, or SUSE Linux GPU drivers
    Windows Server GPU drivers GPU drivers that run Windows cannot be installed when you create GPU-accelerated compute-optimized instances. You can create GPU-accelerated compute-optimized instances that are not configured with drivers and install GPU drivers that you have downloaded from the NVIDIA official website on the instances. For more information about how to install Windows Server GPU drivers, see the following references:
  • Graphics computing scenarios such as OpenGL and Direct3D scenarios
    OS Driver type Installation method
    Windows Server GRID drivers
    • We recommend that you search for images that are configured with GRID drivers in Alibaba Cloud Marketplace and use the images to create GPU-accelerated compute-optimized instances. For example, you can search for Windows Server 2019 DataCenter 64-bit (English) Preinstalled GRID 13 Driver Image or Windows Server 2016 DataCenter 64-bit (English) Preinstalled GRID 13 Driver Image. These images are configured with GRID drivers whose licenses are activated. You do not need to perform additional operations to install the drivers.

      After the instances are created, the GRID drivers are installed. For more information, see Create a Windows GPU-accelerated instance configured with a GRID driver.

    • If you have purchased GRID licenses, we recommend that you purchase only GPU-accelerated compute-optimized instances that are not configured with drivers. For more information, see Create a GPU-accelerated instance that is not configured with a driver.
      Note After you create the GPU-accelerated compute-optimized instances, you must install GRID drivers on the instances. To install the drivers, contact your license provider.
    Linux, such as Alibaba Cloud Linux, CentOS, Ubuntu, or SUSE Linux GPU drivers