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

Method sync

src/core/impl/comp_node/atlas/comp_node.cpp:247–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void AtlasCompNodeImpl::sync() {
248 activate();
249
250 Event* event;
251 {
252 MGB_LOCK_GUARD(m_sync_event_mtx);
253 if (!m_sync_event)
254 m_sync_event = create_event(0);
255 event = m_sync_event.get();
256 }
257 event->record();
258 event->host_wait();
259}
260
261void AtlasCompNodeImpl::enable_peer_access(int dev0, int dev1) {
262 MGB_MARK_USED_VAR(dev0);

Callers

nothing calls this directly

Calls 3

host_waitMethod · 0.80
getMethod · 0.45
recordMethod · 0.45

Tested by

no test coverage detected