This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]