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.
098
Coarrays: images and this_image
a coarray, NUM_IMAGES, THIS_IMAGE, -fcoarray=single and what one image means
Open
099
SYNC ALL and SYNC IMAGES
SYNC ALL, SYNC IMAGES, SYNC MEMORY and the order two images agree on
Open
100
Coarray data exchange and reductions
a remote read a[2], a remote write, a reduction by hand, and CO_SUM
Open
101
Coarrays without OpenCoarrays
-fcoarray=lib and the real link error, what OpenCoarrays adds, and what still runs here
Open
102
OpenMP: parallel do
-fopenmp, !$OMP PARALLEL DO, the thread count, and a timing against one thread
Open
103
OpenMP: reductions and scheduling
REDUCTION(+:sum), CRITICAL, SCHEDULE(STATIC) and DYNAMIC, and the race a missing clause gives
Open