| 441 | } |
| 442 | |
| 443 | void* CompNode::alloc_device(size_t size) const { |
| 444 | auto ret = m_impl->alloc_device(size); |
| 445 | static_cast<Impl*>(m_impl)->env().on_mem_event(size, true, ret); |
| 446 | return ret; |
| 447 | } |
| 448 | |
| 449 | void CompNode::free_device(void* ptr) const { |
| 450 | static_cast<Impl*>(m_impl)->env().on_mem_event(0, true, ptr); |