1 ! RUN: %flang_fc1 -fdebug-unparse-with-symbols %s 2>&1 | FileCheck %s
2 ! RUN: %flang_fc1 -fopenmp -fdebug-unparse-with-symbols %s 2>&1 | FileCheck %s
7 integer OMP_GET_NUM_THREADS
, OMP_GET_THREAD_NUM
9 integer N
, CSZ
, CNUM
, I
21 !$OMP PARALLEL SHARED(A,B,C,NUMTHRDS,CNUM) PRIVATE(I,TID)
22 TID
= OMP_GET_THREAD_NUM()
24 NUMTHRDS
= OMP_GET_NUM_THREADS()
25 print *, "Number of threads =", NUMTHRDS
27 print *, "Thread", TID
, " is starting..."
29 !$OMP DO SCHEDULE(DYNAMIC,CNUM)
32 write (*,100) TID
, I
, C(I
)
36 print *, "Thread", TID
, " done."
39 100 format(" Thread", I2
, ": C(", I3
, ")=", F8
.2
)