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

Method defrag_prealloc_contig

src/core/impl/graph/cg_impl.cpp:99–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void DeviceMemoryAllocator::defrag_prealloc_contig(
100 ComputingGraph* /*graph*/, CompNode comp_node,
101 size_t size){MGB_TRY{comp_node.free_device(comp_node.alloc_device(size));
102}
103MGB_CATCH(MemAllocError&, {})
104}
105

Callers 1

defrag_implMethod · 0.45

Calls 2

free_deviceMethod · 0.45
alloc_deviceMethod · 0.45

Tested by

no test coverage detected