From: Alastair McKinstry Date: Wed, 8 Sep 2021 13:07:52 +0000 (+0100) Subject: Memory leak in MPI_Allreduce when using a repeatedly created and freed MPI_Datatype X-Git-Tag: archive/raspbian/4.1.1-5+rpi1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d68dcb214adf8de83a261c62c726bd39bfb736c0;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