Skip to content

Commit

Permalink
bug fix for allgather partial wait
Browse files Browse the repository at this point in the history
  • Loading branch information
FeixLiu committed Sep 19, 2022
1 parent 491e4df commit 6b4e744
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,11 @@ def _p2p_helper(tensor_send_next, tensor_send_prev, recv_prev, recv_next):
group=mp_group,
use_calc_stream=True))

for task in tasks:
# wait partial all gather tasks
if task is not None:
task.wait()
if in_dygraph_mode():
for task in tasks:
# wait partial all gather tasks
if task is not None:
task.wait()

return tensor_recv_prev, tensor_recv_next

Expand Down

0 comments on commit 6b4e744

Please sign in to comment.