int halide_hexagon_remote_release_library(handle_t module_ptr) { if (use_dlopenbuf()) { dlclose(reinterpret_cast<void*>(module_ptr)); } else { mmap_dlclose(reinterpret_cast<void*>(module_ptr)); } return 0; }
int release_kernels(handle_t module_ptr, bool use_dlopenbuf) { if (use_dlopenbuf) { dlclose(reinterpret_cast<void *>(module_ptr)); } else { mmap_dlclose(reinterpret_cast<void *>(module_ptr)); } return 0; }