Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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