!$OMP PARALLEL DO, SHARED(A,B,C), & |
!$OMP REDUCTION(X), & |
!$OMP SCHEDULE(DYNAMIC, 100)
|
!$OMP END DO |
!$OMP PARALLEL DO, SHARED(D,E), & |
!$OMP SCHEDULE(STATIC)
|
!$OMP END DO |
X is a summation |
Iterations managed first-come, first-served, in blocks of 100 |
Iterations blocked evenly among threads (GUIDED scheduling also available) |