Skip to content

Conversation

@kerthcet
Copy link
Contributor

@kerthcet kerthcet commented Aug 16, 2022

/kind bug

The problem here is we'll always return devIDs with length equals to 1, but actually I think predicateGPUbyMemory wants to return all the available devIDs.

if availableGPU >= gpuRequest {
devIDs = append(devIDs, devID)
return devIDs
}

@volcano-sh-bot volcano-sh-bot added the kind/bug Categorizes issue or PR as related to a bug. label Aug 16, 2022
@volcano-sh-bot volcano-sh-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 16, 2022
}

return nil
return allocatableGPUs[:gpuRequest]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Another concern here is should we always return the idle gpus, what about including the allocable gpus.

Copy link
Contributor Author

@kerthcet kerthcet Aug 17, 2022

Choose a reason for hiding this comment

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

@Thor-wl Does this make sense? Actually I haven't seen the original design.

@volcano-sh-bot volcano-sh-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 16, 2022
@Thor-wl Thor-wl requested review from shinytang6 and removed request for zen-xu August 17, 2022 00:54
Copy link
Contributor

@Thor-wl Thor-wl left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. Can you submit an issue about the details in order to make it easy for reviewers to have a full glimpse of the scenario?

@kerthcet
Copy link
Contributor Author

Thanks for the fix. Can you submit an issue about the details in order to make it easy for reviewers to have a full glimpse of the scenario?

Updated in the description.

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 17, 2022
@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Thor-wl

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

The pull request process is described here

Details 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 17, 2022
@Thor-wl
Copy link
Contributor

Thor-wl commented Aug 17, 2022

Updated in the description.

IC, it's just an optimization.

@volcano-sh-bot volcano-sh-bot merged commit 1c69879 into volcano-sh:master Aug 17, 2022
@kerthcet kerthcet deleted the fix/available-gpu-calculation-error branch August 17, 2022 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants