r"""Block until all ranks in the group reach this barrier.
(group: Group = WORLD)
| 243 | |
| 244 | |
| 245 | def 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) |
no test coverage detected