Compaq Fortran for Tru64 UNIX Alpha Systems V5.4

omp_get_max_threads (3f)


Syntax

  interface
     integer function omp_get_max_threads ( )
     end function omp_get_max_threads
  end interface
  integer result
  result = omp_get_max_threads ( )

Description

  When the omp_set_dynamic routine is set to TRUE, you can use
  omp_get_max_threads to allocate data structures that are maximally sized
  for each thread.

  This function has global scope.

Return Values

  This function returns the maximum value whether executing from a serial
  region or from a parallel region.

  If your program uses omp_set_num_threads to change the number of threads,
  subsequent calls to omp_get_max_threads will return the new value.

See Also

  omp_set_dynamic(3f), omp_set_num_threads(3f)