This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
co-array fortran
- From: Bud Davis <bdavis9659 at sbcglobal dot net>
- To: fortran at gcc dot gnu dot org
- Date: Thu, 6 Aug 2009 13:48:24 -0700 (PDT)
- Subject: co-array fortran
ok. i have read a few things on the web about this. ignoring the distributed implementation (because it seems very difficult), the implementation on an SMP machine seems understandable.
In it's simplest case:
#1. N copies of the fortran main are created (pthread_create).
#2. non shared variables become the equivalent of TLS variables in C. __thread int i;
#3. image shared variables are "really" globals.
#4. the sync primitives have to be implemented.
#5. I/O and the runtime lib have to be thread safe.
Agreed this is simplified to it's extreme, Is this approach viable ?
--bud