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

Method get_used_memory

src/core/impl/comp_node/cuda/comp_node.cpp:537–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537size_t CudaCompNodeImpl::get_used_memory() {
538 return m_device_info->m_used_mem.load();
539}
540
541size_t CudaCompNodeImpl::get_max_used_memory() {
542 return m_device_info->m_max_used_mem.load();

Callers 4

init_commonFunction · 0.45
auto_evictMethod · 0.45
TESTFunction · 0.45
get_reserved_memoryMethod · 0.45

Calls 1

loadMethod · 0.45

Tested by 1

TESTFunction · 0.36