-
Notifications
You must be signed in to change notification settings - Fork 62
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
Fixes for resource scoping #726
Conversation
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.
LGTM. Appears to be working in tests.
One nit question.
output.initial_proc = local_range.first(); | ||
auto target = legate_mapper_->task_target(legate_task, options); | ||
// The initial processor just needs to have the same kind as the eventual target of this task | ||
output.initial_proc = machine.procs(target).front(); |
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.
Is there a scenario in which even this might be empty?
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.
no there isn't. that should have already been caught at this line: https://github.com/nv-legate/legate.core/blob/branch-23.05/legate/core/context.py#L177
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.
👍
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.
New segfault... hang on...
output.initial_proc = local_range.first(); | ||
auto target = legate_mapper_->task_target(legate_task, options); | ||
// The initial processor just needs to have the same kind as the eventual target of this task | ||
output.initial_proc = machine.procs(target).front(); |
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.
👍
This PR fixes two bugs in the resource scoping code: