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

Method free_device

src/core/impl/comp_node/comp_node.cpp:449–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449void CompNode::free_device(void* ptr) const {
450 static_cast<Impl*>(m_impl)->env().on_mem_event(0, true, ptr);
451 return m_impl->free_device(m_impl, ptr);
452}
453
454void* CompNode::alloc_host(size_t size) const {
455 auto ret = m_impl->alloc_host(size);

Callers 14

defragMethod · 0.45
TESTFunction · 0.45
alloc_dynamicMethod · 0.45
alloc_dynamicMethod · 0.45
alloc_dynamicMethod · 0.45
deallocMethod · 0.45
freeMethod · 0.45
make_async_error_infoMethod · 0.45
freeMethod · 0.45
DeallocateRawMethod · 0.45
TENSORRT_NO_EXCEPTFunction · 0.45

Calls 1

on_mem_eventMethod · 0.80

Tested by 5

TESTFunction · 0.36
alloc_dynamicMethod · 0.36
alloc_dynamicMethod · 0.36
alloc_dynamicMethod · 0.36
alloc_dynamicMethod · 0.36