Skip to content

Commit

Permalink
update wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
tim0s committed Oct 22, 2023
1 parent dda141f commit 001f7fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions build/mpi_c_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -5922,10 +5922,10 @@ int MPI_Pack_size (int incount, MPI_Datatype datatype, MPI_Comm comm, int * size
}

int MPI_Pcontrol (const int level, ...) {
if (level == 0) lap_tracing_enabled = 0;
if (level > 0) lap_tracing_enabled = 1;
if (level > 1) lap_elem_tracing_enabled = 1;
if (level > 2) lap_backtrace_enabled = 1;
if (level == 0) { lap_tracing_enabled = 0; lap_elem_tracing_enabled = 0; lap_backtrace_enabled = 0; }
if (level == 1) { lap_tracing_enabled = 1; lap_elem_tracing_enabled = 0; lap_backtrace_enabled = 0; }
if (level == 2) { lap_tracing_enabled = 1; lap_elem_tracing_enabled = 1; lap_backtrace_enabled = 0; }
if (level >= 3) { lap_tracing_enabled = 1; lap_elem_tracing_enabled = 1; lap_backtrace_enabled = 1; }
return MPI_SUCCESS;
}

Expand Down
8 changes: 4 additions & 4 deletions build/mpi_f_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -5832,10 +5832,10 @@ void FortranCInterface_GLOBAL(mpi_pack_size,MPI_PACK_SIZE) (int* incount, int* d
}

void FortranCInterface_GLOBAL(mpi_pcontrol,MPI_PCONTROL) (int* level, int* ierr) {
if (*level == 0) lap_tracing_enabled = 0;
if (*level > 0) lap_tracing_enabled = 1;
if (*level > 1) lap_elem_tracing_enabled = 1;
if (*level > 2) lap_backtrace_enabled = 1;
if (*level == 0) { lap_tracing_enabled = 0; lap_elem_tracing_enabled = 0; lap_backtrace_enabled = 0; }
if (*level == 1) { lap_tracing_enabled = 1; lap_elem_tracing_enabled = 0; lap_backtrace_enabled = 0; }
if (*level == 2) { lap_tracing_enabled = 1; lap_elem_tracing_enabled = 1; lap_backtrace_enabled = 0; }
if (*level >= 3) { lap_tracing_enabled = 1; lap_elem_tracing_enabled = 1; lap_backtrace_enabled = 1; }
}

void FortranCInterface_GLOBAL(mpi_probe,MPI_PROBE) (int* source, int* tag, int* comm, int* status, int* ierr) {
Expand Down

0 comments on commit 001f7fc

Please sign in to comment.