Skip to content

Commit

Permalink
do not change state on pcontrol >3
Browse files Browse the repository at this point in the history
  • Loading branch information
tim0s committed Oct 30, 2023
1 parent bb01ecf commit 6da7dbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build
build/*
__pycache__
*_cmdline.c
*_cmdline.h
Expand Down
2 changes: 1 addition & 1 deletion src/liballprof2/gencode.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def produce_pcontrol(self, mode):
self.outfile.write(f" if ({deref}level == 0) {{ lap_tracing_enabled = 0; lap_elem_tracing_enabled = 0; lap_backtrace_enabled = 0; }}\n")
self.outfile.write(f" if ({deref}level == 1) {{ lap_tracing_enabled = 1; lap_elem_tracing_enabled = 0; lap_backtrace_enabled = 0; }}\n")
self.outfile.write(f" if ({deref}level == 2) {{ lap_tracing_enabled = 1; lap_elem_tracing_enabled = 1; lap_backtrace_enabled = 0; }}\n")
self.outfile.write(f" if ({deref}level >= 3) {{ lap_tracing_enabled = 1; lap_elem_tracing_enabled = 1; lap_backtrace_enabled = 1; }}\n")
self.outfile.write(f" if ({deref}level == 3) {{ lap_tracing_enabled = 1; lap_elem_tracing_enabled = 1; lap_backtrace_enabled = 1; }}\n")
self.outfile.write(f" WRITE_TRACE(\"# pcontrol with value / epoch %i)\\n\", {deref}level);\n")
if mode == 'c':
self.outfile.write(f" return MPI_SUCCESS;\n")
Expand Down

0 comments on commit 6da7dbb

Please sign in to comment.