This program is a piece of cake for the compiler.
-
Allocate portion of array on each processor based on DISTRIBUTE
-
Apply owner-computes rule analytically based on left-hand side
-
Detect shift communication from dependence analysis of subscripts or pattern matching
-
Recognize MAXVAL intrinsic as reduction communication
-
Place all communication directly outside parallel construct where it occurs
-
Number processors so that shifts do not cause contention
|