omp_get_device_teams_thread_limit – Get upper thread limit of a device ¶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.
| Prototype: | int omp_get_device_teams_thread_limit(int device_num) |
| Interface: | integer function omp_get_device_teams_thread_limit(device_num) |
integer, intent(in) :: device_num |
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
OpenMP specification v6.0, Section 24.13