Skip to content

Commit 4f3435a

Browse files
committed
Syn before record the time in mark
1 parent d1ae9b1 commit 4f3435a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pylops_mpi/utils/benchmark.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def wrapper(*args, **kwargs):
133133
header_index = len(_markers) - 1
134134

135135
def local_mark(label):
136+
_sync()
136137
_markers.append((label, time.perf_counter(), level))
137138

138139
_mark_func_stack.append(local_mark)

0 commit comments

Comments
 (0)