| 1039 | } |
| 1040 | |
| 1041 | void 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 |