File: pr8827.patch

package info (click to toggle)
openmpi 4.1.0-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 126,560 kB
  • sloc: ansic: 685,465; makefile: 42,952; f90: 19,220; sh: 7,002; java: 6,360; perl: 3,524; cpp: 2,227; python: 1,350; lex: 989; fortran: 61; tcl: 12
file content (26 lines) | stat: -rw-r--r-- 957 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Memory leak in MPI_Allreduce when using a repeatedly created and freed MPI_Datatype
Bug-Origin: https://github.com/open-mpi/ompi/issues/8827
Author: Yossi Itigin
Last-Updated: 2021-05-10
Forwarded: not-needed

Index: openmpi-4.1.0/ompi/mca/pml/ucx/pml_ucx_datatype.c
===================================================================
--- openmpi-4.1.0.orig/ompi/mca/pml/ucx/pml_ucx_datatype.c
+++ openmpi-4.1.0/ompi/mca/pml/ucx/pml_ucx_datatype.c
@@ -222,6 +222,7 @@ ucp_datatype_t mca_pml_ucx_init_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_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