Skip to content

Commit a89f113

Browse files
committed
mpi/c: add missing OPAL_CR_EXIT_LIBRARY() in [un]pack[_external]
1 parent 985a3b3 commit a89f113

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

ompi/mpi/c/pack.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2013 Los Alamos National Security, LLC. All rights
1515
* reserved.
16-
* Copyright (c) 2015 Research Organization for Information Science
16+
* Copyright (c) 2015-2016 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
1818
* $COPYRIGHT$
1919
*
@@ -97,6 +97,8 @@ int MPI_Pack(const void *inbuf, int incount, MPI_Datatype datatype,
9797
*position += size;
9898
OBJ_DESTRUCT( &local_convertor );
9999

100+
OPAL_CR_EXIT_LIBRARY();
101+
100102
/* All done. Note that the convertor returns 1 upon success, not
101103
OMPI_SUCCESS. */
102104
OMPI_ERRHANDLER_RETURN((rc == 1) ? OMPI_SUCCESS : OMPI_ERROR,

ompi/mpi/c/pack_external.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2013 Los Alamos National Security, LLC. All rights
1515
* reserved.
16-
* Copyright (c) 2015 Research Organization for Information Science
16+
* Copyright (c) 2015-2016 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
1818
* $COPYRIGHT$
1919
*
@@ -101,6 +101,8 @@ int MPI_Pack_external(const char datarep[], const void *inbuf, int incount,
101101
*position += size;
102102
OBJ_DESTRUCT( &local_convertor );
103103

104+
OPAL_CR_EXIT_LIBRARY();
105+
104106
/* All done. Note that the convertor returns 1 upon success, not
105107
OMPI_SUCCESS. */
106108
OMPI_ERRHANDLER_RETURN((rc == 1) ? OMPI_SUCCESS : OMPI_ERROR,

ompi/mpi/c/unpack.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
1212
* Copyright (c) 2006-2013 Cisco Systems, Inc. All rights reserved.
13-
* Copyright (c) 2015 Research Organization for Information Science
13+
* Copyright (c) 2015-2016 Research Organization for Information Science
1414
* and Technology (RIST). All rights reserved.
1515
* $COPYRIGHT$
1616
*
@@ -106,6 +106,8 @@ int MPI_Unpack(const void *inbuf, int insize, int *position,
106106

107107
}
108108

109+
OPAL_CR_EXIT_LIBRARY();
110+
109111
OMPI_ERRHANDLER_RETURN((rc == 1) ? OMPI_SUCCESS : OMPI_ERROR,
110112
comm, MPI_ERR_UNKNOWN, FUNC_NAME);
111113

ompi/mpi/c/unpack_external.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2013 Los Alamos National Security, LLC. All rights
1515
* reserved.
16-
* Copyright (c) 2015 Research Organization for Information Science
16+
* Copyright (c) 2015-2016 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
1818
* $COPYRIGHT$
1919
*
@@ -93,6 +93,8 @@ int MPI_Unpack_external (const char datarep[], const void *inbuf, MPI_Aint insiz
9393
*position += size;
9494
OBJ_DESTRUCT( &local_convertor );
9595

96+
OPAL_CR_EXIT_LIBRARY();
97+
9698
/* All done. Note that the convertor returns 1 upon success, not
9799
OMPI_SUCCESS. */
98100
OMPI_ERRHANDLER_RETURN((rc == 1) ? OMPI_SUCCESS : OMPI_ERROR,

0 commit comments

Comments
 (0)