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

[rllib] PPO doesn't work with fractional num gpus #3396

Merged
merged 2 commits into from
Nov 27, 2018

Conversation

ericl
Copy link
Contributor

@ericl ericl commented Nov 25, 2018

What do these changes do?

Round up to next int when allocating ids w/fractional gpus.

Related issue number

Closes #3394

@AmplabJenkins
Copy link

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

@AmplabJenkins
Copy link

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

@jhpenger
Copy link
Contributor

would love to have this merged just so I can build with the wheel instead of from source

@robertnishihara
Copy link
Collaborator

@jhpenger just a note that if you want to build wheels on branches/commits that we don't provide, that can be done by following the instructions in https://github.com/ray-project/ray/blob/master/python/README-building-wheels.md.

@@ -44,7 +45,9 @@ def _init(self,
if not num_gpus:
self.devices = ["/cpu:0"]
else:
self.devices = ["/gpu:{}".format(i) for i in range(num_gpus)]
self.devices = [
"/gpu:{}".format(i) for i in range(int(math.ceil(num_gpus)))
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't numpy already imported?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Better to avoid numpy if you can use standard libraries instead.

@AmplabJenkins
Copy link

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

@ericl
Copy link
Contributor Author

ericl commented Nov 26, 2018

jenkins retest this please

@AmplabJenkins
Copy link

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

@ericl ericl merged commit e3c088f into ray-project:master Nov 27, 2018
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.

5 participants