omp_set_default_allocator (GNU libgomp)

#### 3.13.3 `omp_set_default_allocator` – Set the default allocator ¶

Description:

  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.

C/C++:

  Prototype: | `void omp_set_default_allocator(omp_allocator_handle_t allocator);`

Fortran:

  Interface: | `subroutine omp_set_default_allocator(allocator)`
  | `integer (omp_allocator_handle_kind), intent(in) :: allocator`

See also:

  `omp_get_default_allocator` – Get the default allocator, `omp_init_allocator` – Create an allocator, `OMP_ALLOCATOR` – Set the default allocator, Memory allocation

Reference:

  OpenMP specification v5.0, Section 3.7.4