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

Function dealloc

src/core/impl/comp_node_api.cpp:206–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206void dealloc(mgbComputeNode_t device, void* addr) {
207 auto cn = *reinterpret_cast<mgb::CompNode*>(device);
208 XLAMemAllocHelper::inst()->dealloc(cn, addr);
209}
210
211void log_xla_mem_states() {
212 XLAMemAllocHelper::inst()->log_states();

Callers

nothing calls this directly

Calls 2

instFunction · 0.85
deallocMethod · 0.45

Tested by

no test coverage detected