How to use coarray for sharing compuation

How to use coarray for sharing compuation

Hi, I am happily using openMP shared memory with $OMP DO and $OMP TASK. But I want to consider coarray instead for a new project. While passing data between coarry images seams easy I cannot see how to share execution in a similar way to $OMP DO and $OMP TASK.  Can sombody point me to something I can read to get familiar.

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

The coarray model is quite different from OpenMP. Where OpenMP has a single program that does "fork and join", a coarray program runs multiple copies (termed "images") of the program in parallel, sharing variables and synchronizing. Coarrays are closer to MPI programming than OpenMP.

Retired 12/31/2016

Typically one would not use coarray or MPI within a single CPU or SMP system unless the O/S restricted you to running 32-bit applications on a system with more than 4GB of RAM and your problem set will not fit within the addressing limitations of a single 32-bit process.

Jim Dempsey

I understand all the aspects of coarray mentioned by Steve and Jim. I am trying to use some third party library that is not thread safe, so coarray having seperate images should fix that. I would also like to undertsand coarray better just from an personal interest point of view. Are there any examples of how to use it that cover the aspect of how to set it up to do parallel computation or is it only intended as a data communication mechanism?

Leave a Comment

Please sign in to add a comment. Not a member? Join today