4.1 KiB

original_name

cce_10_0141.html

gpu-beta

Introduction

gpu-beta is a device management add-on that supports GPUs in containers. If GPU nodes are used in the cluster, the gpu-beta add-on must be installed.

Notes and Constraints

  • The driver to be downloaded must be a .run file.
  • Only NVIDIA Tesla drivers are supported, not GRID drivers.
  • When installing or reinstalling the add-on, ensure that the driver download address is correct and accessible. CCE does not verify the address validity.
  • The gpu-beta add-on only enables you to download the driver and execute the installation script. The add-on status only indicates that how the add-on is running, not whether the driver is successfully installed.

Installing the Add-on

  1. Log in to the CCE console and access the cluster console. Choose Add-ons in the navigation pane, locate gpu-beta on the right, and click Install.

  2. Configure the driver link.

    Important

    • If the download link is a public network address, for example, https://us.download.nvidia.com/tesla/470.103.01/NVIDIA-Linux-x86_64-470.103.01.run, bind an EIP to each GPU node. For details about how to obtain the driver link, see Obtaining the Driver Link from Public Network <cce_10_0141__section95451728192112>.
    • If the download link is an OBS URL, you do not need to bind an EIP to GPU nodes.
    • Ensure that the NVIDIA driver version matches the GPU node.
    • After the driver version is changed, restart the node for the change to take effect.
  3. Click Install.

Verifying the Add-on

After the add-on is installed, run the nvidia-smi command on the GPU node and the container that schedules GPU resources to verify the availability of the GPU device and driver.

GPU node:

cd /opt/cloud/cce/nvidia/bin && ./nvidia-smi

Container:

cd /usr/local/nvidia/bin && ./nvidia-smi

If GPU information is returned, the device is available and the add-on is successfully installed.

image1

Obtaining the Driver Link from Public Network

  1. Log in to the CCE console.

  2. Click Create Node and select the GPU node to be created in the Specifications area. The GPU card model of the node is displayed in the lower part of the page.

  3. Visit https://www.nvidia.com/Download/Find.aspx?lang=en.

  4. Select the driver information on the NVIDIA Driver Downloads page, as shown in Figure 1 <cce_10_0141__fig11696366517>. Operating System must be Linux 64-bit.

    Figure 1 Setting parameters
  5. After confirming the driver information, click SEARCH. A page is displayed, showing the driver information, as shown in Figure 2 <cce_10_0141__fig7873421145213>. Click DOWNLOAD.

    Figure 2 Driver information
  6. Obtain the driver link in either of the following ways:

    • Method 1: As shown in Figure 3 <cce_10_0141__fig5901194614534>, find url=/tesla/470.103.01/NVIDIA-Linux-x86_64-470.103.01.run in the browser address box. Then, supplement it to obtain the driver link https://us.download.nvidia.com/tesla/470.103.01/NVIDIA-Linux-x86_64-470.103.01.run. By using this method, you must bind an EIP to each GPU node.

    • Method 2: As shown in Figure 3 <cce_10_0141__fig5901194614534>, click AGREE & DOWNLOAD to download the driver. Then, upload the driver to OBS and record the OBS URL. By using this method, you do not need to bind an EIP to GPU nodes.

      Figure 3 Obtaining the link