void omp_destroy_allocator (omp_allocator_handle_t allocator);
SummaryThe omp_destroy_allocator routine releases all resources used by the allocator handle.
Constraints on ArgumentsThe allocator argument must not represent a predefined memory allocator. Unless a requires directive with the dynamic_allocators clause is present in the same compilation unit, using this routine in a target region results in unspecified behavior.
BindingThe binding thread set for an omp_destroy_allocator region is all threads on a device. The effect of executing this routine is not related to any specific region that corresponds to any construct or API routine.
EffectThe omp_destroy_allocator routine releases all resources used to implement the allocator handle. Accessing any memory allocated by the allocator after this call results in unspecified behavior. If allocator is omp_null_allocator then this routine will have no effect.