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

Function sync

src/core/impl/comp_node_api.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void sync(mgbComputeNode_t cn) {
28 if (!is_finalize()) {
29 auto* s = reinterpret_cast<mgb::CompNode*>(cn);
30 if (s->valid())
31 s->sync();
32 }
33}
34
35mgbComputeNode_t load_cuda_cn(int device_id, int stream) {
36 std::string loc = ssprintf("gpu%i:%i", device_id, stream);

Callers 12

__enter__Method · 0.85
__exit__Method · 0.85
workerFunction · 0.85
connectMethod · 0.85
getMethod · 0.85
putMethod · 0.85
clearMethod · 0.85
~CompNodeRecMethod · 0.85
check_async_errorMethod · 0.85
peer_copy_toMethod · 0.85
add_taskMethod · 0.85
add_taskMethod · 0.85

Calls 3

is_finalizeFunction · 0.85
validMethod · 0.45
syncMethod · 0.45

Tested by 2

workerFunction · 0.68
add_taskMethod · 0.68