Commit 774abb0
[ptd] Fix test config in destroy_pg (pytorch#166463)
Summary: When device_type is CPU we will not use device id from CUDA which is enabled in pytorch#161015. However, we should not exclude the case when the accelerator itself is CPU. This PR fixes it.
Test Plan: UT
Differential Revision: D85714901
Pull Request resolved: pytorch#166463
Approved by: https://github.com/mori360, https://github.com/fegin1 parent 0e19561 commit 774abb0
File tree
1 file changed
+1
-1
lines changed- torch/testing/_internal/distributed/_tensor
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
| 450 | + | |
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
| |||
0 commit comments