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

Method free

compiler/test/kernel/common/src/memory_manager.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void megdnn::HandleMemoryManager::free(void* ptr) {
28 auto comp_handle = m_handle->megcore_computing_handle();
29 megcoreDeviceHandle_t dev_handle;
30 megcore_check(megcoreGetDeviceHandle(comp_handle, &dev_handle));
31 megcore_check(megcoreFree(dev_handle, ptr));
32}
33
34megdnn::MemoryManager* megdnn::MemoryManagerHolder::get(Handle* handle) {
35 std::lock_guard<std::mutex> lock(m_map_mutex);

Callers 15

megdnn_freeMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
init_model_weightsFunction · 0.45
parse_modelFunction · 0.45
LITE_destroy_networkFunction · 0.45
destructFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected