omp_pause_resource (GNU libgomp)

#### 3.5.1 `omp_pause_resource` – Release OpenMP resources on a device ¶

Description:

  Free resources used by the OpenMP program and the runtime library on and for the device specified by device_num; on success, zero is returned and non-zero otherwise.

  The value of device_num must be a conforming device number. 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, int device_num);`

Fortran:

  Interface: | `integer function omp_pause_resource(kind, device_num)`
  | `integer (kind=omp_pause_resource_kind) kind`
  | `integer device_num`

Reference:

  OpenMP specification v5.0, Section 3.2.43.