MPI_STATUS_SIZE in Fortran is 5, so we need to jump by 5 integers instead
of 4 when we are finding the next MPI_STATUS in the array. Refs trac:236 This commit was SVN r11332. The following Trac tickets were found above: Ticket 236 --> https://svn.open-mpi.org/trac/ompi/ticket/236
Этот коммит содержится в:
родитель
1c4de419cc
Коммит
4f984056ac
@ -107,7 +107,7 @@ void mpi_testsome_f(MPI_Fint *incount, MPI_Fint *array_of_requests,
|
|||||||
if (!OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) {
|
if (!OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) {
|
||||||
for (i = 0; i < OMPI_FINT_2_INT(*outcount); ++i) {
|
for (i = 0; i < OMPI_FINT_2_INT(*outcount); ++i) {
|
||||||
if (!OMPI_IS_FORTRAN_STATUS_IGNORE(&array_of_statuses[i])) {
|
if (!OMPI_IS_FORTRAN_STATUS_IGNORE(&array_of_statuses[i])) {
|
||||||
MPI_Status_c2f(&c_status[i], &array_of_statuses[i * 4]);
|
MPI_Status_c2f(&c_status[i], &array_of_statuses[i * 5]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,7 @@ void mpi_waitsome_f(MPI_Fint *incount, MPI_Fint *array_of_requests,
|
|||||||
if (!OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) {
|
if (!OMPI_IS_FORTRAN_STATUSES_IGNORE(array_of_statuses)) {
|
||||||
for (i = 0; i < OMPI_FINT_2_INT(*incount); ++i) {
|
for (i = 0; i < OMPI_FINT_2_INT(*incount); ++i) {
|
||||||
if (!OMPI_IS_FORTRAN_STATUS_IGNORE(&array_of_statuses[i])) {
|
if (!OMPI_IS_FORTRAN_STATUS_IGNORE(&array_of_statuses[i])) {
|
||||||
MPI_Status_c2f(&c_status[i], &array_of_statuses[i * 4]);
|
MPI_Status_c2f(&c_status[i], &array_of_statuses[i * 5]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user