-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Simplify resource bookkeeping in local scheduler. #494
Simplify resource bookkeeping in local scheduler. #494
Conversation
Merged build finished. Test PASSed. |
Test PASSed. |
/** The number of CPUs that the worker is currently using. This will only be | ||
* nonzero when the worker is actively executing a task. If the worker is | ||
* blocked, then this value will be zero. */ | ||
int cpus_in_use; |
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 should be a double, right?
* is not an actor, this will be constant for the duration of a task and will | ||
* have length equal to the number of GPUs requested by the task (in | ||
* particular it will not change if the task blocks). */ | ||
int gpus_in_use; |
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.
Same 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.
I'm about to turn this into a std::vector<int>
in the next PR (which still won't support fractional CPUs and GPUs just yet).
Merged build finished. Test PASSed. |
Test PASSed. |
This breaks off a small self-contained piece of #403.
Note this also makes a couple changes so that local schedulers do not do bookkeeping for resources for actor tasks.