MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / ~FunctionHandle

Method ~FunctionHandle

src/jit/impl/halide/halide_executable.cpp:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using namespace Halide;
10
11HalideExecutable::FunctionHandle::~FunctionHandle() {
12 if (device_release && uctx_map) {
13 for (auto&& i : uctx_map->cn2uctx) {
14 device_release(i.second);
15 }
16 }
17 delete uctx_map;
18 if (dl_handle) {
19 ExecutableHelper::get().unload_lib(dl_handle);
20 }
21}
22
23HalideExecutable::TargetTraitUserData* HalideExecutable::TargetTrait::user_data(
24 const HalideExecutable& hl_exec,

Callers

nothing calls this directly

Calls 2

getFunction · 0.85
unload_libMethod · 0.80

Tested by

no test coverage detected