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

Method exec_enter

src/core/impl/graph/var_node_mem_mgr.cpp:37–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 : m_allocator{std::make_shared<DeviceMemoryAllocator>()} {}
36
37void StaticDeviceMemoryManager::exec_enter() {
38 auto flag = m_in_exec.test_and_set();
39 mgb_assert(!flag, "double-lock on StaticDeviceMemoryManager");
40}
41
42void StaticDeviceMemoryManager::exec_exit() {
43 mgb_assert(m_in_exec.test_and_set());

Callers 1

ExecContextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected