3.7.12 omp_get_device_teams_thread_limit – Get upper thread limit of a device

Description:

Returns the value of the teams-thread-limit-var ICV for the specified device number, which is used to limits the number of threads that participate in each team created by a teams construct. If the device_num argument denotes the host device, the routine returns the same value as omp_get_teams_thread_limit. If the device_num argument specifies a non-conforming device number or omp_invalid_device, the value zero is returned. Invoking this routine on a non-host device has unspecified behavior. When the device_num arguments denotes the host, the omp_get_device_teams_thread_limit region must be strictly nested in the implicit parallel region of the OpenMP program.

C/C++:
Prototype:int omp_get_device_teams_thread_limit(int device_num)
Fortran:
Interface:integer function omp_get_device_teams_thread_limit(device_num)
integer, intent(in) :: device_num
See also:

omp_get_device_teams_thread_limit – Get upper thread limit of a device, omp_get_teams_thread_limit – Maximum number of threads imposed by teams, OMP_TEAMS_THREAD_LIMIT – Set the maximum number of threads imposed by teams, OMP_THREAD_LIMIT – Set the maximum number of threads

Reference:

OpenMP specification v6.0, Section 24.13