Skip to content

Commit

Permalink
[sharding] bugfix for group init hang (#33327)
Browse files Browse the repository at this point in the history
  • Loading branch information
JZ-LIANG authored Jun 7, 2021
1 parent 4da15e6 commit cb12282
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,8 @@ def append_naive_sync(block, sync_var, ring_id):
'use_calc_stream': True,
OP_ROLE_KEY: OpRole.Forward
})
block.append_op(
type='c_sync_calc_stream',
inputs={'X': [sync_var]},
outputs={'Out': [sync_var]},
attrs={OP_ROLE_KEY: OpRole.Forward})
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,8 @@ def test_sharding_with_pp(self):
'uniform_random', 'fill_constant', 'fill_constant', 'fill_constant',
'fill_constant', 'fill_constant', 'fill_constant', 'fill_constant',
'c_gen_nccl_id', 'c_comm_init', 'fill_constant', 'c_allreduce_sum',
'c_gen_nccl_id', 'c_comm_init', 'fill_constant', 'c_allreduce_sum',
'c_sync_calc_stream', 'c_gen_nccl_id', 'c_comm_init',
'fill_constant', 'c_allreduce_sum', 'c_sync_calc_stream',
'c_gen_nccl_id', 'c_comm_init', 'c_gen_nccl_id', 'c_comm_init'
])

Expand Down

0 comments on commit cb12282

Please sign in to comment.