Default Clause Example
itotal = 1000
C$OMP PARALLEL DEFAULT(PRIVATE) SHARED(itotal)
np = omp_get_num_threads()
each = itotal/np
………
C$OMP END PARALLEL
itotal = 1000
C$OMP PARALLEL PRIVATE(np, each)
np = omp_get_num_threads()
each = itotal/np
………
C$OMP END PARALLEL
Previous slide
Next slide
Back to first slide
View graphic version