mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-10 08:22:11 +01:00
13 lines
329 B
Fortran
13 lines
329 B
Fortran
! @@name: nthrs_dynamic.2
|
|
! @@type: F-fixed
|
|
! @@operation: link
|
|
! @@expect: success
|
|
! @@version: pre_omp_3.0
|
|
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
|