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

Method fini

src/core/impl/comp_node/rocm/comp_node.cpp:307–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307void ROCmCompNodeImpl::fini() {
308 if (!m_initialized)
309 return;
310
311 m_sync_event.reset();
312 m_env.fini();
313 m_mem_alloc = nullptr;
314 m_device_info = nullptr;
315 m_initialized = false;
316}
317
318void ROCmCompNodeImpl::free_device(void* ptr) {
319 if (check_global_finalized())

Callers 1

~StaticDataMethod · 0.45

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected