| 141 | } |
| 142 | |
| 143 | void MagicMindRuntimeOpr::CambriconAllocator::DeallocateRaw(void* ptr) { |
| 144 | { |
| 145 | auto iter = m_ptr2size.find(ptr); |
| 146 | mgb_assert(iter != m_ptr2size.end(), "ptr %p not found", ptr); |
| 147 | m_ptr2size.erase(iter); |
| 148 | } |
| 149 | m_cn.free_device(ptr); |
| 150 | } |
| 151 | |
| 152 | /* ====================== MagicMindRuntimeOpr ==================== */ |
| 153 | MGB_DYN_TYPE_OBJ_FINAL_IMPL(MagicMindRuntimeOpr); |
nothing calls this directly
no test coverage detected