10.07.2015 Views

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

OpenMP Directives for <strong>Fortran</strong>Runtime Library Routines with ExamplesReturns .TRUE. if called from within a parallel region and .FALSE. if called outside of a parallel region. When calledfrom within a parallel region that is serialized, for example in the presence of an IF clause evaluating .FALSE., the functionreturns .FALSE..<strong>Fortran</strong>omp_in_parallelinteger function omp_in_final()Returns whether or not the call is within a parallel region.Returns .TRUE. if called from within a parallel region and .FALSE. if called outside of a parallel region. When calledfrom within a parallel region that is serialized, for example in the presence of an IF clause evaluating .FALSE., the functionreturns .FALSE..<strong>Fortran</strong>omp_set_dynamiclogical function omp_in_parallel()Allows automatic dynamic adjustment of the number of threads used for execution of parallel regions.This function is recognized, but currently has no effect.<strong>Fortran</strong>omp_get_dynamicsubroutine omp_set_dynamic(scalar_logical_exp)Allows the user to query whether automatic dynamic adjustment of the number of threads used for execution of parallel regions isenabled.This function is recognized, but currently always returns .FALSE..<strong>Fortran</strong>omp_set_nestedlogical function omp_get_dynamic()Allows enabling/disabling of nested parallel regions.<strong>Fortran</strong>subroutine omp_set_nested(nested)logical nestedomp_get_nestedAllows the user to query whether dynamic adjustment of the number of threads available for execution of parallel regions isenabled.<strong>Fortran</strong>logical function omp_get_nested()omp_set_scheduleSet the value of the run_sched_var.<strong>Fortran</strong>subroutine omp_set_schedule(kind, modifier)include ‘omp_lib_kinds.h’integer (kind=omp_sched_kind) kindinteger modifieromp_get_scheduleRetrieve the value of the run_sched_var.<strong>Fortran</strong>subroutine omp_get_schedule(kind, modifier)include ‘omp_lib_kinds.h’integer (kind=omp_sched_kind) kindinteger modifier<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 182

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!