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

Method sync_all

src/core/impl/comp_node/cpu/comp_node.cpp:1041–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039}
1040
1041void CpuCompNode::sync_all() {
1042 if (!sm_pool)
1043 return;
1044
1045 MGB_LOCK_GUARD(sm_pool->mtx);
1046 for (auto&& i : sm_pool->locator2impl)
1047 i.second->sync();
1048 for (auto&& i : sm_pool->locator2impl_multi_thread)
1049 i.second->sync();
1050}
1051
1052/* ======================== CompNode methods ======================== */
1053// CompNode get by default_cpu() is different from the CompNode which is

Callers

nothing calls this directly

Calls 1

syncMethod · 0.45

Tested by

no test coverage detected