Use device index as zero if there is only one device
Summary: We are seeing that many benchmark use "cuda" instead of "cuda:0", so index is not properly set. This diff adds a simple change to set the target index as zero if there is only one cuda device.
Differential Revision: D49001887
Deploy Preview for pytorch-fbgemm-docs canceled.
| Name | Link |
|---|---|
| Latest commit | 43e444f7f058ca936fd15aff73d212ec25bbada5 |
| Latest deploy log | https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/64f8c452ea906200085edef2 |
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887
This pull request was exported from Phabricator. Differential Revision: D49001887