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

Simplify resource bookkeeping in local scheduler. #494

Merged
merged 2 commits into from
Apr 28, 2017
Merged

Simplify resource bookkeeping in local scheduler. #494

merged 2 commits into from
Apr 28, 2017

Conversation

robertnishihara
Copy link
Collaborator

@robertnishihara robertnishihara commented Apr 28, 2017

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.

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/637/
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;
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

Copy link
Collaborator Author

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).

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/638/
Test PASSed.

@pcmoritz pcmoritz merged commit 6d301d9 into ray-project:master Apr 28, 2017
@pcmoritz pcmoritz deleted the exposegpuidstotasks branch April 28, 2017 19:09
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.

3 participants