Skip to content

[SharedResourcesProblem] [Simplex Scheduler] Simplex scheduler deals with multiple resource constraints #8480

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jiahanxie353
Copy link
Contributor

This patch:

  1. Renames SharedOperators to SharedResources to reflect the new changes in [SSP] Separate ResourceType from OperatorType #8444;
  2. It supports the simplex scheduler to deal with multiple resource constraints.

Copy link
Contributor

@jopperm jopperm left a comment

Choose a reason for hiding this comment

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

Mechanical rename part of the PR LGTM.

Comment on lines 946 to 949
auto rsrc = rsrcs[0];
unsigned limit = prob.getLimit(rsrc).value_or(0);
assert(limit > 0);

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this dead code?

Suggested change
auto rsrc = rsrcs[0];
unsigned limit = prob.getLimit(rsrc).value_or(0);
assert(limit > 0);

@@ -69,3 +69,26 @@ ssp.instance @multiple of "SharedOperatorsProblem" {
operation<@_1> @last(%5) [t<11>]
}
}

// CHECK-LABEL: if_else
ssp.instance @if_else_exclusive of "SharedResourcesProblem" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a couple more tests for multi-resource operations that contain potential resource conflicts. I'd like to see:

  • Two ops competing for a set of common resources
  • Limits > 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants