Skip to content

Commit afc970c

Browse files
authored
Merge pull request #12888 from hppritcha/beef_up_sessions_smoke_test
sessions: make sure to only finalize class
2 parents c393881 + 70e51fe commit afc970c

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

examples/hello_sessions_c.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,10 @@ int main(int argc, char** argv) {
1111
MPI_Info info;
1212
MPI_Session s1, s2;
1313

14-
#if 0
15-
/* need PR https://github.com/open-mpi/ompi/pull/12868 to be merged in
16-
* before this can be uncommented.
17-
*/
1814
MPI_Info_create(&info);
19-
#endif
2015
MPI_Session_init(MPI_INFO_NULL, MPI_ERRORS_RETURN, &s1);
2116
MPI_Session_finalize(&s1);
2217
MPI_Session_init(MPI_INFO_NULL, MPI_ERRORS_RETURN, &s2);
2318
MPI_Session_finalize(&s2);
19+
MPI_Info_free(&info);
2420
}

ompi/instance/instance.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -954,13 +954,6 @@ static int ompi_mpi_instance_finalize_common (void)
954954

955955
ompi_mpi_instance_release ();
956956

957-
if (0 == opal_initialized) {
958-
/* if there is no MPI_T_init_thread that has been MPI_T_finalize'd,
959-
* then be gentle to the app and release all the memory now (instead
960-
* of the opal library destructor */
961-
opal_class_finalize ();
962-
}
963-
964957
return OMPI_SUCCESS;
965958
}
966959

0 commit comments

Comments
 (0)