From 8ffbd14ade10d7f10e626b1c189c6505843b9ddf Mon Sep 17 00:00:00 2001 From: Alastair McKinstry Date: Thu, 27 May 2021 09:16:24 +0100 Subject: [PATCH] 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 --- ompi/mca/pml/ucx/pml_ucx_datatype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2