1
1

Merge pull request #5661 from kawashima-fj/pr/v4.0.x/pcollreq-zero-count

v4.0.x: mpiext/pcollreq: Fix zero-count reduction
Этот коммит содержится в:
Howard Pritchard 2018-09-10 09:45:32 -06:00 коммит произвёл GitHub
родитель 38171be7ac 6858028596
Коммит 1dedade614
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 9 добавлений и 6 удалений

Просмотреть файл

@ -15,6 +15,7 @@
* Copyright (c) 2015-2018 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2016 IBM Corporation. All rights reserved.
* Copyright (c) 2018 FUJITSU LIMITED. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -106,8 +107,8 @@ int MPIX_Allreduce_init(const void *sendbuf, void *recvbuf, int count,
* So handle that case.
*/
if (0 == count) {
*request = &ompi_request_empty;
return MPI_SUCCESS;
err = ompi_request_persistent_noop_create(request);
OMPI_ERRHANDLER_RETURN(err, comm, err, FUNC_NAME);
}
OPAL_CR_ENTER_LIBRARY();

Просмотреть файл

@ -16,6 +16,7 @@
* Copyright (c) 2015-2018 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2016 IBM Corporation. All rights reserved.
* Copyright (c) 2018 FUJITSU LIMITED. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -131,8 +132,8 @@ int MPIX_Reduce_init(const void *sendbuf, void *recvbuf, int count,
* So handle that case.
*/
if (0 == count) {
*request = &ompi_request_empty;
return MPI_SUCCESS;
err = ompi_request_persistent_noop_create(request);
OMPI_ERRHANDLER_RETURN(err, comm, err, FUNC_NAME);
}
OPAL_CR_ENTER_LIBRARY();

Просмотреть файл

@ -16,6 +16,7 @@
* Copyright (c) 2015-2018 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2016 IBM Corporation. All rights reserved.
* Copyright (c) 2018 FUJITSU LIMITED. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -126,8 +127,8 @@ int MPIX_Reduce_scatter_init(const void *sendbuf, void *recvbuf, const int recvc
}
}
if (size == count) {
*request = &ompi_request_empty;
return MPI_SUCCESS;
err = ompi_request_persistent_noop_create(request);
OMPI_ERRHANDLER_RETURN(err, comm, err, FUNC_NAME);
}
OPAL_CR_ENTER_LIBRARY();