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

Method get_mem_status_bytes

src/core/include/megbrain/comp_node.h:387–389  ·  view source on GitHub ↗

get total and free memory on the computing device in bytes

Source from the content-addressed store, hash-verified

385
386 //! get total and free memory on the computing device in bytes
387 std::pair<size_t, size_t> get_mem_status_bytes() const {
388 return m_impl->get_mem_status_bytes();
389 }
390
391#if !MGB_BUILD_SLIM_SERVING
392 std::pair<size_t, size_t> get_free_left_and_right(

Callers 7

run_dtr_resnet1202Function · 0.45
init_commonFunction · 0.45
sample_on_deviceMethod · 0.45
test_free_memFunction · 0.45
test_gather_otherFunction · 0.45
on_static_mem_allocMethod · 0.45

Calls

no outgoing calls

Tested by 3

run_dtr_resnet1202Function · 0.36
test_free_memFunction · 0.36
test_gather_otherFunction · 0.36