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

Hungry feature #3949

Merged
merged 10 commits into from
Oct 15, 2024
Merged

Conversation

RamenMode
Copy link
Contributor

@RamenMode RamenMode commented Oct 3, 2024

Proposed Changes

Give an overall description of the changes, along with the context and motivation.
Mention relevant issues and pull requests as needed.

Changes

  • Removed use of hungry_minimum_factor as a metric for how hungry a queue is (still use hungry-minimum)
  • m.hungry now returns the additional number of tasks the queue can take if it is hungry and still 0 if not
  • Estimation is based on aggregation of current tasks in queue required resources and should be used for "similarly" resourced tasks

Merge Checklist

The following items must be completed before PRs can be merge.
Check these off to verify you have completed all steps.

  • make test Run local tests prior to pushing.
  • make format Format source code to comply with lint policies. Note that some lint errors can only be resolved manually (e.g., Python)
  • make lint Run lint on source code prior to pushing.
  • Manual Update Update the manual to reflect user-visible changes.
  • Type Labels Select a github label for the type: bugfix, enhancement, etc.
  • Product Labels Select a github label for the product: TaskVine, Makeflow, etc.
  • PR RTM Mark your PR as ready to merge.

@RamenMode RamenMode assigned dthain and unassigned dthain Oct 3, 2024
Copy link
Member

@dthain dthain left a comment

Choose a reason for hiding this comment

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

Overall, the right idea, see fixes -

@@ -0,0 +1,16 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

Don't include this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed

// represents number of tasks in queue
int i = count;

while (i > 0) {
Copy link
Member

Choose a reason for hiding this comment

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

Use LIST_ITERATE here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed

@RamenMode RamenMode requested a review from dthain October 10, 2024 18:34
@RamenMode
Copy link
Contributor Author

Made the necessary changes

@dthain dthain merged commit 7efb354 into cooperative-computing-lab:master Oct 15, 2024
8 checks passed
btovar pushed a commit that referenced this pull request Oct 21, 2024
* tmp commit

* debug commit for hungry implementation

* hungry implementation

* remove limits.h>

* lint

* removed file

* actually removed file

* changed list iteration and removed file

* removed comment

* lint

---------

Co-authored-by: Kevin Xue <[email protected]>
Co-authored-by: Kevin Xue <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants