Skip to content
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

fix allocating more pods to a GPU when using volcano-vgpu feature #3774

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

archlitchi
Copy link
Contributor

fix an issue: allocate more pods to a GPU resulting a GPU exceeds its core limit.

image

related issue:
Project-HAMi/volcano-vgpu-device-plugin#30

Signed-off-by: limengxuan <391013634@qq.com>
@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign k82cn
You can assign the PR to them by writing /assign @k82cn in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 16, 2024
@archlitchi
Copy link
Contributor Author

/assign @william-wang @Monokaix

@Monokaix
Copy link
Member

/ok-to-test

@volcano-sh-bot volcano-sh-bot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Oct 16, 2024
@@ -369,7 +369,7 @@ func checkNodeGPUSharingPredicateAndScore(pod *v1.Pod, gssnap *GPUDevices, repli
if int(gs.Device[i].Memory)-int(gs.Device[i].UsedMem) < int(val.Memreq) {
continue
}
if 100-gs.Device[i].UsedCore < uint(val.Coresreq) {
if 100-int32(gs.Device[i].UsedCore) < val.Coresreq {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any difference with previous code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants