Coarrays and OpenMP
Two ways to use more than one core, both inside the language. A coarray is an array with an extra dimension of images, addressed with brackets, and SYNC ALL and SYNC IMAGES are the order two images agree on; the part is honest about what OpenCoarrays adds and what does not run without it. OpenMP comes in as compiler directives: !$OMP PARALLEL DO, the reduction clause and the schedule, with the race a missing clause leaves behind.
10.1
Coarrays: images and this_image
a coarray, NUM_IMAGES, THIS_IMAGE, -fcoarray=single and what one image means
Open
10.2
SYNC ALL and SYNC IMAGES
SYNC ALL, SYNC IMAGES, SYNC MEMORY and the order two images agree on
Open
10.3
Coarray data exchange and reductions
a remote read a[2], a remote write, a reduction by hand, and CO_SUM
Open
10.4
Coarrays without OpenCoarrays
-fcoarray=lib and the real link error, what OpenCoarrays adds, and what still runs here
Open
10.5
OpenMP: parallel do
-fopenmp, !$OMP PARALLEL DO, the thread count, and a timing against one thread
Open
10.6
OpenMP: reductions and scheduling
REDUCTION(+:sum), CRITICAL, SCHEDULE(STATIC) and DYNAMIC, and the race a missing clause gives
Open