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

Function get_rank

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

r"""Get the rank of the current process.

()

Source from the content-addressed store, hash-verified

199
200
201def get_rank() -> int:
202 r"""Get the rank of the current process."""
203 return _sd.proc_rank if _sd is not None else 0
204
205
206def get_local_device_id() -> int:

Callers 6

rankMethod · 0.85
remote_sendFunction · 0.85
remote_recvFunction · 0.85
_remote_send_nobackwardFunction · 0.85
_remote_recv_nobackwardFunction · 0.85
build_xlaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected