Is it possible to create a code that would mix coarrays and calls to scalapack routines? In other words, assuming that a coarray program spawns 10 images (ideally, on 10 different cores), would it be possible to have one of these images (the "master" image for the purpose of clarity) call a scalapak routine on all 10 cores?
In pseudo code:
! ... SYNC ALL ! ... all images do some kind of work. SYNC ALL IF (THIS_IMAGE()==1) THEN ! The "master" image collects data from other images' coarrays, then ! calls a scalapack routine where work is distributed on all resources, ! and redistribute the results onto each image local coarrays. END IF SYNC ALL ! ... more work is done by all images.