A simple example to compare coarrays and openmp

You can enclose the output in a “Details section”. See Click-to-show code snippets - #2 by ivanpribec


This was really just a toy demo. I agree with your concerns about the overheads and delays.
As your question toward the end indicates, the payload also affects the choice of parallelization strategy. I also like to keep the 80-20 principle in mind; often it’s hard to justify the increased complexity of a program which reaches close to the theoretical-max speed-up. The following comic comes to mind:

2 Likes