sourceryinstitute / OpenCoarrays

A parallel application binary interface for Fortran 2018 compilers.
http://www.opencoarrays.org
BSD 3-Clause "New" or "Revised" License
244 stars 58 forks source link

pthreads interop question #220

Closed zbeekman closed 7 years ago

zbeekman commented 7 years ago

Hi @afanfa and @rouson,

Marco was wondering if he could safely use CAF with pthreads. Please see his initial question below. I don't foresee any issue, as long as the MPI implementation is interoperable, right?

Hi, I am an aerospace engineer from Milan, and I have a question about coarrays.

In particular I wrote a fortran interface to pthread and I plan to use pthread with coarrays. Have you got any suggestion. Is there something to know about code portability?

Best regards, Mirco valentini

afanfa commented 7 years ago

There might be problems. Using OpenMP, my recommendation would be to avoid CAF statements withing OpenMP constructs. Pthreads are more general than OpenMP and bad things may happen.

zbeekman commented 7 years ago

Closing issue because due to inactivity.