Compaq Fortran for Tru64 UNIX Alpha Systems V5.4
omp_get_num_threads (3f)
returns the number of threads currently in the team
executing the parallel region from which it is called
Syntax
interface
integer function omp_get_num_threads ( )
end function omp_get_num_threads
end interface
integer result
result = omp_get_num_threads ( )
Description
This function interacts with the omp_set_num_threads routine and the
OMP_NUM_THREADS environment variable that control the number of threads in
a team. If the number of threads has not been explicitly set by the user,
the default is implementation dependent.
This function binds to the closest enclosing PARALLEL directive.
Return Values
This function returns the number of threads currently in the team executing
the parallel region from which it is called.
The function returns 1 if the call is made from the serial portion of a
program, or from a nested parallel region that is serialized.
See Also
omp_set_num_threads(3f)