Memory leak in MPI_Allreduce when using a repeatedly created and freed MPI_Datatype
authorAlastair McKinstry <mckinstry@debian.org>
Thu, 27 May 2021 08:16:24 +0000 (09:16 +0100)
committerAlastair McKinstry <mckinstry@debian.org>
Thu, 27 May 2021 08:16:24 +0000 (09:16 +0100)
Bug-Origin: https://github.com/open-mpi/ompi/issues/8827
Last-Updated: 2021-05-10
Forwarded: not-needed

Gbp-Pq: Name pr8827.patch

ompi/mca/pml/ucx/pml_ucx_datatype.c

index 5b1b8ccbed3b4a8b66a232460c7c4b5ffb97a042..3db3e6abad0dbaf5359c91cbcfe42a93e1324815 100644 (file)
@@ -222,6 +222,7 @@ ucp_datatype_t mca_pml_ucx_init_datatype(ompi_datatype_t *datatype)
         ompi_mpi_abort(&ompi_mpi_comm_world.comm, 1);
     }
 
+ out:
     /* Add custom attribute, to clean up UCX resources when OMPI datatype is
      * released.
      */
@@ -238,7 +239,6 @@ ucp_datatype_t mca_pml_ucx_init_datatype(ompi_datatype_t *datatype)
             ompi_mpi_abort(&ompi_mpi_comm_world.comm, 1);
         }
     }
-out:
     PML_UCX_VERBOSE(7, "created generic UCX datatype 0x%"PRIx64, ucp_datatype)
 
 #ifdef HAVE_UCP_REQUEST_PARAM_T