3.5.2 omp_pause_resource_all – Release OpenMP resources on all devices

Description:

Free resources used by the OpenMP program and the runtime library on all devices, including the host. On success, zero is returned and non-zero otherwise.

The routine may not be called from within any explicit region and all explicit threads that do not bind to the implicit parallel region have finalized execution.

C/C++:
Prototype:int omp_pause_resource(omp_pause_resource_t kind);
Fortran:
Interface:integer function omp_pause_resource(kind)
integer (kind=omp_pause_resource_kind) kind
See also:

omp_pause_resource – Release OpenMP resources on a device

Reference:

OpenMP specification v5.0, Section 3.2.44.