omp_set_default_allocator
– Set the default allocator ¶Sets the default allocator that is used when no allocator has been specified
in the allocate
or allocator
clause or if an OpenMP memory
routine is invoked with the omp_null_allocator
allocator.
Prototype: | void omp_set_default_allocator(omp_allocator_handle_t allocator); |
Interface: | subroutine omp_set_default_allocator(allocator) |
integer (omp_allocator_handle_kind), intent(in) :: allocator |
omp_get_default_allocator
– Get the default allocator, omp_init_allocator
– Create an allocator, OMP_ALLOCATOR
– Set the default allocator,
Memory allocation
OpenMP specification v5.0, Section 3.7.4