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

Method alloc

src/core/impl/comp_node_env.cpp:397–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395 CambriconMemoryManagerImpl(CompNode comp_node) : comp_node(comp_node) {}
396
397 virtual void* alloc(size_t size) final { return comp_node.alloc_device(size); }
398 virtual void free(void* ptr) final { return comp_node.free_device(ptr); }
399
400private:

Callers

nothing calls this directly

Calls 1

alloc_deviceMethod · 0.45

Tested by

no test coverage detected