Skip to content

Commit b5a4c54

Browse files
authored
Merge pull request #163 from tharittk/mark_sync_bug
Syn before record the time in mark
2 parents d1ae9b1 + 4f3435a commit b5a4c54

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)