Skip to content

Commit

Permalink
fix example yaml (#709)
Browse files Browse the repository at this point in the history
* fix example yaml

add detail comment for nvidia specify card case.

Signed-off-by: lixd <xueduan.li@gmail.com>

* fix review comment

Signed-off-by: lixd <xueduan.li@gmail.com>

* fix review comment2

Signed-off-by: lixd <xueduan.li@gmail.com>

---------

Signed-off-by: lixd <xueduan.li@gmail.com>
  • Loading branch information
lixd authored Dec 18, 2024
1 parent 050f91b commit 4785c8f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 3 additions & 1 deletion examples/nvidia/specify_card_type_not_use.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ kind: Pod
metadata:
name: gpu-pod
annotations:
# You can run command: kubectl get node $node -o jsonpath='{.metadata.annotations.hami\.io/node-nvidia-register}' to get registered gpu info
# The full GPU type name is like NVIDIA-NVIDIA A100, while the short name is like A100
nvidia.com/nouse-gputype: "1080,2080" # Specify the blacklist card type for this job, use comma to seperate, will not launch job on specified card
# In this job, we don't want our job to run on 1080(include 1080Ti) or 2080(include 2080Ti) type of card.
# In this example, we don't want our job to run on 1080(include 1080Ti) or 2080(include 2080Ti) type of card.
spec:
containers:
- name: ubuntu-container
Expand Down
4 changes: 3 additions & 1 deletion examples/nvidia/specify_card_type_to_use.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ kind: Pod
metadata:
name: gpu-pod
annotations:
# You can run command: kubectl get node $node -o jsonpath='{.metadata.annotations.hami\.io/node-nvidia-register}' to get registered gpu info
# The full GPU type name is like NVIDIA-NVIDIA A100, while the short name is like A100
nvidia.com/use-gputype: "A100,V100" # Specify the card type for this job, use comma to seperate, will launch job on specified card
#In this example, we want to run this job on A100 or V100
# In this example, we want to run this job on A100 or V100
spec:
containers:
- name: ubuntu-container
Expand Down
5 changes: 4 additions & 1 deletion examples/nvidia/specify_uuid_not_use.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ kind: Pod
metadata:
name: gpu-pod
annotations:
nvidia.com/nouse-gpuuuid: "GPU-123456"
# You can run command: kubectl get node $node -o jsonpath='{.metadata.annotations.hami\.io/node-nvidia-register}' to get gpu-type
# UUID is like GPU-03f69c50-207a-2038-9b45-23cac89cb67d
nvidia.com/nouse-gpuuuid: "GPU-03f69c50-207a-2038-9b45-23cac89cb67d" # Specify the blacklist card UUIDs for this job, use comma to seperate, will not launch job on specified cards
# In this job, we don't want our job to run on GPU-03f69c50-207a-2038-9b45-23cac89cb67d.
spec:
containers:
- name: ubuntu-container
Expand Down
5 changes: 4 additions & 1 deletion examples/nvidia/specify_uuid_to_use.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ kind: Pod
metadata:
name: gpu-pod
annotations:
nvidia.com/use-gpuuuid: "GPU-123456"
# You can run command: kubectl get node $node -o jsonpath='{.metadata.annotations.hami\.io/node-nvidia-register}' to get gpu-type
# UUID is like GPU-03f69c50-207a-2038-9b45-23cac89cb67d
nvidia.com/use-gpuuuid: "GPU-03f69c50-207a-2038-9b45-23cac89cb67d,GPU-03f69c50-207a-2038-9b45-23cac89cb67e" # Specify the card UUIDs for this job, separated by commas. The job will run on the specified cards
# In this example, we want to run this job on GPU-03f69c50-207a-2038-9b45-23cac89cb67d or GPU-03f69c50-207a-2038-9b45-23cac89cb67e
spec:
containers:
- name: ubuntu-container
Expand Down

0 comments on commit 4785c8f

Please sign in to comment.