Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] Bug in MPI_Request_get_status (1.3.1) [PATCH]
From: Shaun Jackman (sjackman_at_[hidden])
Date: 2009-03-26 17:12:05


MPI_Request_get_status fails if the status parameter is passed
MPI_STATUS_IGNORE. A patch is attached.

Cheers,
Shaun

2009-03-26 Shaun Jackman <sjackman_at_[hidden]>

     * ompi/mpi/c/request_get_status.c (MPI_Request_get_status):
     Do not fail if the status argument is NULL, because the
     application may pass MPI_STATUS_IGNORE for the status argument.

2009-03-26 Shaun Jackman <sjackman_at_[hidden]>

        * ompi/mpi/c/request_get_status.c (MPI_Request_get_status):
        Do not fail if the status argument is NULL, because the
        application may pass MPI_STATUS_IGNORE for the status argument.

--- ompi/mpi/c/request_get_status.c.orig 2008-11-04 12:56:27.000000000 -0800
+++ ompi/mpi/c/request_get_status.c 2009-03-26 14:00:00.807344000 -0700
@@ -49,7 +49,7 @@
 
     if( MPI_PARAM_CHECK ) {
         OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
- if( (NULL == flag) || (NULL == status) ) {
+ if (NULL == flag) {
             return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_ARG, FUNC_NAME);
         } else if (NULL == request) {
             return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_REQUEST,