-
Notifications
You must be signed in to change notification settings - Fork 39
Advanced coupling #1014
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
base: main
Are you sure you want to change the base?
Advanced coupling #1014
Conversation
c2d3e34
to
d556f1f
Compare
d556f1f
to
c2348c2
Compare
ddd0db4
to
a059aa0
Compare
I am still not sure if the price for HiGHS is worth, but if it compiles it seems to me more safe default for performance reasons. On the other hand, it is not hard to remove HiGHS in case of problems. This PR is blocking some other changes in the scheduler. So I am now asking for review request. But there is no need to hurry because of my vacation. (However it is also blocking #959.) |
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.
Pushed a change to documentation to talk about the new build dependencies.
/// - `--coupling cpus,gpus" | ||
#[arg(long, value_parser = passthrough_parser(parse_resource_coupling))] | ||
pub coupling: Option<PassThroughArgument<ResourceDescriptorCoupling>>, | ||
/// - `--coupling TODO" |
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.
The TODO is intended to be here?
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.
Fixed. Thanks
input: &str, | ||
resources: &[ResourceDescriptorItem], | ||
) -> anyhow::Result<(u8, ResourceGroupIdx)> { | ||
let input = input.trim(); |
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.
You gave up on the parser combinators? 😆 It's easier to have a high quality error message when parsing "manually", that's for sure...
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.
I am not giving up completely, but if I remember correctly, in this case, it was quite ugly code and manual parser was easy.
This PR introduces advance coupling that allows to set individual weights between groups.
Important notes: