HOME
| OPENMP API Specification: Version 5.0 November 2018

3.7.3  omp_destroy_allocator

SummaryThe omp_destroy_allocator routine releases all resources used by the allocator handle.

Format

SVG-Viewer needed.

 

 
void omp_destroy_allocator (omp_allocator_handle_t allocator);  

SVG-Viewer needed.

SVG-Viewer needed.

 

 
subroutine omp_destroy_allocator ( allocator ) 
integer(kind=omp_allocator_handle_kind),intent(in) :: allocator  

SVG-Viewer needed.

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.

Cross References