From: Alastair McKinstry Date: Thu, 27 May 2021 08:16:24 +0000 (+0100) Subject: Memory leak in MPI_Allreduce when using a repeatedly created and freed MPI_Datatype X-Git-Tag: archive/raspbian/4.1.0-10+rpi1^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8ffbd14ade10d7f10e626b1c189c6505843b9ddf;p=openmpi.git Memory leak in MPI_Allreduce when using a repeatedly created and freed MPI_Datatype Bug-Origin: https://github.com/open-mpi/ompi/issues/8827 Last-Updated: 2021-05-10 Forwarded: not-needed Gbp-Pq: Name pr8827.patch --- diff --git a/ompi/mca/pml/ucx/pml_ucx_datatype.c b/ompi/mca/pml/ucx/pml_ucx_datatype.c index 5b1b8ccb..3db3e6ab 100644 --- a/ompi/mca/pml/ucx/pml_ucx_datatype.c +++ b/ompi/mca/pml/ucx/pml_ucx_datatype.c @@ -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