-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a MIG example #182
base: main
Are you sure you want to change the base?
Add a MIG example #182
Conversation
Signed-off-by: Yuan Chen <[email protected]> Create a new example for MIG Signed-off-by: Yuan Chen <[email protected]> Update comment Signed-off-by: Yuan Chen <[email protected]>
constraints: | ||
- requests: [] | ||
matchAttribute: "gpu.nvidia.com/parentUUID" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no need for this with just a single MIG device request -- this pulls together the different requests and ensures the allocations come from the same underlying GPU
args: ["nvidia-smi -L; trap 'exit 0' TERM; sleep 9999 & wait"] | ||
resources: | ||
claims: | ||
- name: mig-ts-gpu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't use the name *-ts-*
here unless you put an explicit timeSlicing config on the request.
resourceClaims: | ||
- name: mig-ts-gpu | ||
resourceClaimTemplateName: mig-devices |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this below the list of containers
kind: ResourceClaimTemplate | ||
metadata: | ||
namespace: gpu-test-mig | ||
name: mig-devices |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: mig-devices | |
name: mig-device |
This PR creates a new MIG example
gpu-test-mig.yaml
with the newapiVersion: resource.k8s.io/v1alpha3
to the demo/quickstart folder.Validated on an A100 machine with the following MIG configuration.