-
Notifications
You must be signed in to change notification settings - Fork 67
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
set cuda devices for no-docker mode #1925
Conversation
We use |
@dxoigmn thanks for the input, let me know if this revision will satisfy your need. |
LGTM! |
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.
Will approve once addressed.
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.
LGTM w/ minor formatting change
I believe this retains the existing behavior when using docker.
For no-docker mode, this sets CUDA_VISIBLE_DEVICES to the list of gpus, if specified, or to -1 if the gpu is not to be used.
It still defaults to using all gpus if use_gpu is True but no gpus are specified.
@christopherwoodall @jprokos26 Do you have any comments about this approach? Any cases I'm overlooking?
Should fix #1923 and #1902. Does not address #1922.