Code for Robert Numrich's Parallel Programming with Co-arrays

Does anyone know if the code for the book is available. On the Fortran wiki page, there is mention of an associated website for code download but I am unable to find any such site.

Alternatively, does anyone have the code for download.

Additionally, I am intending to invest some time in mastering co-arrays. So, what is the status/future of it. I would prefer to be stopped now before I go down the rabbit hole.

@certik : What is its status in LFortran?

We don’t support co-arrays yet. Overall we are still in alpha stage, but making good progress towards beta with compiling more and more codes.

1 Like

There have been several threads here over the last few years that discussed co-array performance and usage. You might go back and read those because they give you a broad view of co-arrays. My personal experience is they work very well and are competitive with MPI on large HPC systems with the hardware to support PGAS. Trying to run them on plain vanilla multi-core workstations has been disappointing. I think the NAG compiler is your best bet if you want to use co-arrays on workstations because they aren’t built on top of MPI but use their own shared memory subsystem. You should also look at @milancurcic excellent book

https://www.simonandschuster.com/books/Modern-Fortran/Milan-Curcic/9781617295287

3 Likes

FWIW, the coarray codes described in App. C of MFE can be freely downloaded using the ‘codes’ button at the Companion website.

Regards,

Mike Metcalf

Since you mentioned Robert Numerich’s book, I would like to share a self-study/experimental repository I wrote a while ago, which essentially implements a multidimensional (using PDT) forward partitioner as described in Chapters 3 and 4 of the book:

I tested it with fpm + gfortran + OpenCoarray. Hope it helps!