MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / group_barrier

Function group_barrier

imperative/python/megengine/distributed/group.py:245–251  ·  view source on GitHub ↗

r"""Block until all ranks in the group reach this barrier.

(group: Group = WORLD)

Source from the content-addressed store, hash-verified

243
244
245def group_barrier(group: Group = WORLD) -> None:
246 r"""Block until all ranks in the group reach this barrier."""
247 # if running with single node, skip it
248 if _sd is None:
249 return
250 assert isinstance(group, Group)
251 _sd.client.group_barrier(group.key, group.size)

Callers 3

_run_wrappedFunction · 0.85
init_process_groupFunction · 0.85
wrapperFunction · 0.85

Calls 1

group_barrierMethod · 0.45

Tested by

no test coverage detected