79 |
INTEGER spinCount |
INTEGER spinCount |
80 |
#endif |
#endif |
81 |
#ifdef ALLOW_USE_MPI |
#ifdef ALLOW_USE_MPI |
82 |
INTEGER theProc, theTag, theType, theSize, pReqI |
INTEGER theProc, theTag, theType, theSize |
83 |
INTEGER mpiStatus(MPI_STATUS_SIZE,4), mpiRc |
INTEGER mpiStatus(MPI_STATUS_SIZE,4), mpiRc |
84 |
#endif |
# ifdef ALLOW_AUTODIFF_OPENAD_AMPI |
85 |
|
INTEGER pReqI |
86 |
|
# endif |
87 |
|
#endif /* ALLOW_USE_MPI */ |
88 |
CEOP |
CEOP |
89 |
|
|
90 |
C-- Under a "put" scenario we |
C-- Under a "put" scenario we |
98 |
C-- iii. Set data read flag + memory sync. |
C-- iii. Set data read flag + memory sync. |
99 |
|
|
100 |
#ifdef ALLOW_USE_MPI |
#ifdef ALLOW_USE_MPI |
|
#ifndef ALWAYS_USE_MPI |
|
101 |
IF ( usingMPI ) THEN |
IF ( usingMPI ) THEN |
102 |
#endif |
|
103 |
C-- Receive buffer data: Only Master Thread do proc communication |
C-- Receive buffer data: Only Master Thread do proc communication |
104 |
_BEGIN_MASTER(myThid) |
_BEGIN_MASTER(myThid) |
105 |
|
|
192 |
C (done after mpi waitall in case waitall is really needed) |
C (done after mpi waitall in case waitall is really needed) |
193 |
_BARRIER |
_BARRIER |
194 |
|
|
|
#ifndef ALWAYS_USE_MPI |
|
195 |
ENDIF |
ENDIF |
|
#endif |
|
196 |
#endif /* ALLOW_USE_MPI */ |
#endif /* ALLOW_USE_MPI */ |
197 |
|
|
198 |
C-- Threads wait for buffers I am going to read to be ready. |
C-- Threads wait for buffers I am going to read to be ready. |
199 |
C note: added BARRIER in exch_send_put S/R and here above (message mode) |
C note: added BARRIER in exch_send_put S/R and here above (message mode) |
200 |
C so that we no longer needs this (undef EXCH_USE_SPINNING) |
C so that we no longer needs this (undef EXCH_USE_SPINNING) |