We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, in one form or another, in various parts of the pipeline, this is used:
"cuda:0" if torch.cuda.is_available() and not self._use_cpu else "cpu"
The problem here is that cuda:0 will always refer to the 0 card. In systems hosting multiple cards, this will be painful. workoarounds are:
cuda:0
0
NOT defining the device number, aka, just cuda (see: https://pytorch.org/docs/stable/tensor_attributes.html#torch.torch.device), or
cuda
allow the device number to be passed via a param, e.g.:
"cuda:{cuda_device}" if torch.cuda.is_available() and not self._use_cpu else "cpu"
where cuda_device is an integer that defaults to 0.
Examples where it's used:
The text was updated successfully, but these errors were encountered:
Only relevant once we can test on GPU server
Sorry, something went wrong.
konstin
No branches or pull requests
Currently, in one form or another, in various parts of the pipeline, this is used:
The problem here is that
cuda:0
will always refer to the0
card. In systems hosting multiple cards, this will be painful. workoarounds are:NOT defining the device number, aka, just
cuda
(see: https://pytorch.org/docs/stable/tensor_attributes.html#torch.torch.device), orallow the device number to be passed via a param, e.g.:
where cuda_device is an integer that defaults to
0
.Examples where it's used:
The text was updated successfully, but these errors were encountered: