Skip to content

Commit 6483cc3

Browse files
pavanbalajimeta-codesync[bot]
authored andcommitted
Remove unused variable in MultiCommTest (#932)
Summary: Pull Request resolved: #932 Remove unused `device = torchcomm.get_device()` assignment in the test setup helper. The variable was not referenced after assignment. Reviewed By: mingrany Differential Revision: D95155994
1 parent c369d69 commit 6483cc3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

comms/torchcomms/tests/integration/py/MultiCommTest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def store_deletion_barrier(torchcomm):
2020
torchcomm.barrier(False)
2121

2222
# Synchronize based on device type
23-
device = torchcomm.get_device()
2423
if torch.accelerator.is_available():
2524
# Calculate device index as rank % num_devices and synchronize
2625
rank = torchcomm.get_rank()

0 commit comments

Comments
 (0)