Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Support string based GPU ids #239

Merged
merged 5 commits into from Jan 6, 2023
Merged

Conversation

amogkam
Copy link
Collaborator

@amogkam amogkam commented Dec 20, 2022

GPU device ids can be specified with an integer index, but may also be specified as strings.

This PR ensures that both cases are supported by root_device. The code is taken from what is being done in Ray Train: https://sourcegraph.com/github.com/ray-project/ray/-/blob/python/ray/train/torch/train_loop_utils.py?L470-498

Closes #236

@amogkam amogkam merged commit 34e6443 into ray-project:main Jan 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi-GPU training fails with ValueError on systems with UUID GPU IDs
3 participants