Shortcuts

mmengine.dist.barrier

mmengine.dist.barrier(group=None)[source]

Synchronize all processes from the given process group.

This collective blocks processes until the whole group enters this function.

Note

Calling barrier in non-distributed environment will do nothing.

Parameters:

group (ProcessGroup, optional) – The process group to work on. If None, the default process group will be used. Defaults to None.

Return type:

None