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

[bug fix] added num_gpus variable to ray init call #172

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

janrope
Copy link
Contributor

@janrope janrope commented Jul 31, 2023

To use my GPU (with the devcontainer setup) I needed to add the num_gpus variable to the ray.init() call.

Bug behavior
Whenever I set num_gpus > 1, I got a Ray error stating that no nodes/resources were available that fit my request. After the proposed changes, this error did not occur anymore.

Beware
If Ray auto-detected the GPUs available on your server before, this probably shouldn't interfere with this auto-detection. But I don't have the setup to test this. So please try if your GPUs are still autodetected with the proposed changes - in case you used GPUs.

For the future
Maybe there should be additional tests for num_gpus > 1 behavior. However, they obviously only make sense for a setup that has GPUs.

@Theohhhu Theohhhu requested a review from mrvgao August 9, 2023 23:12
@Theohhhu Theohhhu merged commit 63bd131 into Replicable-MARL:master Aug 22, 2023
1 check passed
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.

None yet

3 participants