| 9 | using namespace Halide; |
| 10 | |
| 11 | HalideExecutable::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 | |
| 23 | HalideExecutable::TargetTraitUserData* HalideExecutable::TargetTrait::user_data( |
| 24 | const HalideExecutable& hl_exec, |
nothing calls this directly
no test coverage detected