Preparing Virtualized GPU Resources
CCE uses xGPU virtualization technologies to dynamically divide the GPU memory and computing power. A single GPU can be virtualized into up to 20 virtual GPU devices. This section describes how to implement GPU scheduling and isolation capabilities on GPU nodes.
Prerequisites
Item |
Supported Version |
---|---|
Cluster version |
v1.23.8-r0, v1.25.3-r0, or later |
OS |
Huawei Cloud EulerOS 2.0 |
GPU type |
Tesla T4 and Tesla V100 |
Driver version |
470.57.02, 510.47.03, and 535.54.03 |
Runtime |
containerd |
Add-on |
The following add-ons must be installed in the cluster:
|
Step 1: Enable GPU Virtualization
Both CCE AI Suite (NVIDIA GPU) and Volcano Scheduler must be installed in the cluster.
- Log in to the CCE console and click the cluster name to access the cluster console. In the navigation pane, choose Settings.
- Switch to the Heterogeneous Resources tab and enable GPU Virtualization. You can configure GPU virtualization by cluster or by node pool.
- Cluster-level GPU virtualization:
- Enable GPU Settings > GPU Virtualization. After this function is enabled, GPU virtualization is enabled globally by default, and the compute power and GPU memory of a single GPU can be split.
- In Default Cluster Driver, select a driver that supports GPU virtualization.
- In the lower right corner of the page, click Confirm Settings.
- Node pool-level GPU virtualization: If CCE AI Suite (NVIDIA GPU) of version 2.7.2 or later is installed, GPU virtualization can be configured by node pool.
- In Node Pool Configurations under GPU Settings, click Add.
- In the Node Pools list, select the node pool where you want to enable GPU virtualization and choose a driver that supports GPU virtualization from Driver. After you customize a GPU driver for a node pool, nodes in that pool will preferentially use the custom driver. Nodes for which no driver is specified will use the cluster's default driver.
- The specified driver version will be installed for new nodes added to the pool. This configuration does not affect existing nodes in the pool.
- An updated driver version applies only to new nodes added to the node pool. Existing nodes must be restarted to apply the changes.
- Click
under GPU Virtualization to enable GPU virtualization for the node pool. To configure GPU virtualization for multiple node pools, click Add.
- In the lower right corner of the page, click Confirm Settings.
- Cluster-level GPU virtualization:
- After configuring GPU virtualization, verify the settings.
In the navigation pane, choose Cluster > Nodes. In the right pane, click the Nodes tab and find the node where GPU virtualization has been configured. In the Operation column of the target node, choose More > View YAML. If the node-status.volcano.sh/nvidia value in the YAML file is {"enableXGPU":true}, GPU virtualization has been configured on the node.
Step 2: Create a GPU Node
Create nodes that support GPU virtualization in the cluster to use the GPU virtualization function. For details, see Creating a Node or Creating a Node Pool. If there are GPU nodes in your cluster that meet the prerequisites requirements, skip this step.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot