OpenMP-Examples/sources/Example_nthrs_dynamic.2.f

13 lines
323 B
Fortran

! @@name: nthrs_dynamic.2f
! @@type: F-fixed
! @@compilable: yes
! @@linkable: yes
! @@expect: success
PROGRAM EXAMPLE
INCLUDE "omp_lib.h" ! or USE OMP_LIB
CALL OMP_SET_DYNAMIC(.TRUE.)
!$OMP PARALLEL NUM_THREADS(10)
! do work here
!$OMP END PARALLEL
END PROGRAM EXAMPLE