Skip to content

Commit

Permalink
ignore notrace in finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
tim0s committed Oct 22, 2023
1 parent b01eea4 commit ee55280
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
5 changes: 0 additions & 5 deletions build/mpi_c_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -3322,11 +3322,6 @@ int MPI_File_write_shared (MPI_File fh, const void * buf, int count, MPI_Datatyp
}

int MPI_Finalize () {
if (lap_tracing_enabled == 0) {
int pmpi_retval; pmpi_retval = PMPI_Finalize();
lap_mpi_initialized = 0;
return pmpi_retval;
}
int pmpi_retval;
lap_check();
WRITE_TRACE("%s", "MPI_Finalize:");
Expand Down
5 changes: 0 additions & 5 deletions build/mpi_f_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -3425,11 +3425,6 @@ void FortranCInterface_GLOBAL(mpi_file_write_shared,MPI_FILE_WRITE_SHARED) (int*
}

void FortranCInterface_GLOBAL(mpi_finalize,MPI_FINALIZE) (int* ierr) {
if (lap_tracing_enabled == 0) {
int pmpi_retval; FortranCInterface_GLOBAL(pmpi_finalize,PMPI_FINALIZE)(ierr);
lap_mpi_initialized = 0;
return;
}
lap_check();
WRITE_TRACE("%s", "MPI_Finalize:");
WRITE_TRACE("%0.2f:", lap_mpi_initialized ? PMPI_Wtime()*1e6 : 0.0);
Expand Down
3 changes: 2 additions & 1 deletion src/liballprof2/gencode.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ def produce_tracers(self, mode='c'):
self.produce_pcontrol(mode)
self.outfile.write("}\n\n")
continue
self.produce_pmpi_only_if_tracing_disabled(func, mode)
if func != "MPI_Finalize":
self.produce_pmpi_only_if_tracing_disabled(func, mode)
self.write_tracer_prolog(func, mode)
if not delay_pmpi:
self.write_pmpi_call(func, mode)
Expand Down

0 comments on commit ee55280

Please sign in to comment.