-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix device share plugins npe & update devicescore #3471
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
Conversation
| @@ -0,0 +1,134 @@ | |||
| /* | |||
| Copyright 2019 The Volcano Authors. | |||
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.
2019 -> 2024
| addResource(p1.Spec.Containers[0].Resources.Requests, gpunumber, "1") | ||
| addResource(p1.Spec.Containers[0].Resources.Requests, gpumemory, "1000") | ||
| p1.Spec.Containers[0].Resources.Limits = make(v1.ResourceList) | ||
| addResource(p1.Spec.Containers[0].Resources.Limits, gpunumber, "1") |
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.
BuildResourceList can directly add scaler resource.
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.
BuildResourceList doesn't add scalar resources to .containers.resources.limits, so we have to do it here manually
| a higher score than those needs to evict a task */ | ||
|
|
||
| // Use cached stored in filter state in order to avoid recalculating. | ||
| klog.V(3).Infof("Scoring pod %s with to node %s with score %f", pod.Name, gs.Name, gs.Score) |
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.
ssn.AddNodeOrderFn has already print the score with log level 5, it's not necessary to print here cause it will print logs of logs.
| Memory: uint(devmem), | ||
| Type: items[3], | ||
| Health: health, | ||
| if len(val) > 0 { |
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.
Is this check needed?
Signed-off-by: limengxuan <[email protected]>
1.Fix device share plugins npe 2.Fix vgpu device handshake patch error 3.update and add deviceshare ut
|
/lgtm |
william-wang
left a comment
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.
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: william-wang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Merge PR 3351: Fix NPU exception #3351
Fix NPU on metrics, leading to scheduler crash when running on none-nvidia type gpu node
Merge PR 3210: Add Score to devices
Add the entrance for volcano-vgpu new location in device-share.md