MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / MachineId4ActorId

Function MachineId4ActorId

oneflow/core/graph/task_id.cpp:73–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73int64_t MachineId4ActorId(int64_t actor_id) {
74 return DecodeTaskIdFromInt64(actor_id).stream_id().rank();
75}
76
77int64_t ThrdId4ActorId(int64_t actor_id) {
78 return EncodeStreamIdToInt64(DecodeTaskIdFromInt64(actor_id).stream_id());

Callers 6

ActMethod · 0.85
SrcMachineIdMethod · 0.85
regst_desc_idMethod · 0.85
machine_idMethod · 0.85
SendMsgMethod · 0.85
SendMsgWithoutCommNetMethod · 0.85

Calls 2

DecodeTaskIdFromInt64Function · 0.85
rankMethod · 0.45

Tested by

no test coverage detected