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

Method sync

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

Source from the content-addressed store, hash-verified

457 }
458
459 void sync() override {
460 if (auto recorder = m_comp_node->cur_recorder()) {
461 recorder->on_sync(m_comp_node);
462 } else if (m_thread_pool) {
463 m_thread_pool->deactive();
464 }
465 }
466
467 size_t get_nr_dispatched_tasks() const override { return m_nr_task; }
468

Callers 2

sync_allMethod · 0.45
do_device_wait_byMethod · 0.45

Calls 3

on_syncMethod · 0.80
cur_recorderMethod · 0.45
deactiveMethod · 0.45

Tested by

no test coverage detected