Add AMD GPU node labeller to scheduling-gpus.md (#12530)
* Add AMD GPU node labeller to scheduling-gpus.md * Add AMD GPU node labeller to scheduling-gpus.md * Fixed typo * Fix stray typo, wording issue
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
a7ec1f8478
commit
bb2d30a821
@@ -142,9 +142,9 @@ Report issues with this device plugin and installation method to [GoogleCloudPla
|
|||||||
Instructions for using NVIDIA GPUs on GKE are
|
Instructions for using NVIDIA GPUs on GKE are
|
||||||
[here](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus)
|
[here](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus)
|
||||||
|
|
||||||
## Clusters containing different types of NVIDIA GPUs
|
## Clusters containing different types of GPUs
|
||||||
|
|
||||||
If different nodes in your cluster have different types of NVIDIA GPUs, then you
|
If different nodes in your cluster have different types of GPUs, then you
|
||||||
can use [Node Labels and Node Selectors](/docs/tasks/configure-pod-container/assign-pods-nodes/)
|
can use [Node Labels and Node Selectors](/docs/tasks/configure-pod-container/assign-pods-nodes/)
|
||||||
to schedule pods to appropriate nodes.
|
to schedule pods to appropriate nodes.
|
||||||
|
|
||||||
@@ -156,6 +156,39 @@ kubectl label nodes <node-with-k80> accelerator=nvidia-tesla-k80
|
|||||||
kubectl label nodes <node-with-p100> accelerator=nvidia-tesla-p100
|
kubectl label nodes <node-with-p100> accelerator=nvidia-tesla-p100
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For AMD GPUs, you can deploy [Node Labeller](https://github.com/RadeonOpenCompute/k8s-device-plugin/tree/master/cmd/k8s-node-labeller), which automatically labels your nodes with GPU properties. Currently supported properties:
|
||||||
|
|
||||||
|
* Device ID (-device-id)
|
||||||
|
* VRAM Size (-vram)
|
||||||
|
* Number of SIMD (-simd-count)
|
||||||
|
* Number of Compute Unit (-cu-count)
|
||||||
|
* Firmware and Feature Versions (-firmware)
|
||||||
|
* GPU Family, in two letters acronym (-family)
|
||||||
|
* SI - Southern Islands
|
||||||
|
* CI - Sea Islands
|
||||||
|
* KV - Kaveri
|
||||||
|
* VI - Volcanic Islands
|
||||||
|
* CZ - Carrizo
|
||||||
|
* AI - Arctic Islands
|
||||||
|
* RV - Raven
|
||||||
|
|
||||||
|
Example result:
|
||||||
|
|
||||||
|
$ kubectl describe node cluster-node-23
|
||||||
|
Name: cluster-node-23
|
||||||
|
Roles: <none>
|
||||||
|
Labels: beta.amd.com/gpu.cu-count.64=1
|
||||||
|
beta.amd.com/gpu.device-id.6860=1
|
||||||
|
beta.amd.com/gpu.family.AI=1
|
||||||
|
beta.amd.com/gpu.simd-count.256=1
|
||||||
|
beta.amd.com/gpu.vram.16G=1
|
||||||
|
beta.kubernetes.io/arch=amd64
|
||||||
|
beta.kubernetes.io/os=linux
|
||||||
|
kubernetes.io/hostname=cluster-node-23
|
||||||
|
Annotations: kubeadm.alpha.kubernetes.io/cri-socket: /var/run/dockershim.sock
|
||||||
|
node.alpha.kubernetes.io/ttl: 0
|
||||||
|
......
|
||||||
|
|
||||||
Specify the GPU type in the pod spec:
|
Specify the GPU type in the pod spec:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user