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

Method SendMsgWithoutCommNet

oneflow/core/lazy/actor/actor_message_bus.cpp:49–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void ActorMsgBus::SendMsgWithoutCommNet(const ActorMsg& msg) {
50 CHECK_EQ(MachineId4ActorId(msg.dst_actor_id()), GlobalProcessCtx::Rank());
51 int64_t thrd_id = ThrdId4ActorId(msg.dst_actor_id());
52 Singleton<ThreadMgr>::Get()->GetThrd(thrd_id)->EnqueueActorMsg(msg);
53}
54
55void ActorMsgBus::SendMsgsWithoutCommNet(const ActorMsg* msgs, size_t n, int64_t thrd_id) {
56 Singleton<ThreadMgr>::Get()->GetThrd(thrd_id)->EnqueueActorMsg(msgs, msgs + n);

Callers 2

RecvActorMsgMethod · 0.80

Calls 6

MachineId4ActorIdFunction · 0.85
ThrdId4ActorIdFunction · 0.85
GetFunction · 0.85
dst_actor_idMethod · 0.80
EnqueueActorMsgMethod · 0.80
GetThrdMethod · 0.80

Tested by

no test coverage detected