This has been corrected on the trunk 
(https://svn.open-mpi.org/trac/ompi/changeset/20537). Unfortunately, the 
corresponding patch didn't make it into the 1.4.1. I'll create a ticket to push 
it into the 1.4.2.

  george.

On Feb 11, 2010, at 10:15 , Lisandro Dalcin wrote:

> Why Request_free() and Cancel() do not fail when REQUEST_NULL is
> passed? Am I missing something?
> 
> #include <mpi.h>
> 
> int main(int argc, char *argv[])
> {
>  MPI_Request req;
>  MPI_Init(&argc, &argv);
>  req = MPI_REQUEST_NULL;
>  MPI_Request_free(&req);
>  req = MPI_REQUEST_NULL;
>  MPI_Cancel(&req);
>  MPI_Finalize();
>  return 0;
> }
> 
> 
> PS: The code below was tested with 1.4.1
> 
> -- 
> Lisandro Dalcin
> ---------------
> Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
> Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
> Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
> PTLC - Güemes 3450, (3000) Santa Fe, Argentina
> Tel/Fax: +54-(0)342-451.1594
> 
> _______________________________________________
> devel mailing list
> de...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/devel


Reply via email to