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

Method set_device_memory_allocator

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

Source from the content-addressed store, hash-verified

812}
813
814void ComputingGraphImpl::set_device_memory_allocator(
815 std::shared_ptr<DeviceMemoryAllocator> allocator) {
816 var_node_mem_manager().static_device_memory_manager()->set_allocator(
817 std::move(allocator));
818}
819
820size_t ComputingGraphImpl::get_device_memory_size(CompNode cn) {
821 return var_node_mem_manager().static_device_memory_manager()->get_size(cn);

Callers 6

set_memory_allocatorMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls 2

set_allocatorMethod · 0.45

Tested by 5

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36