A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable valgrind for unit-tests.
[simgrid.git]
/
tools
/
simgrid_convert_TI_traces.py
diff --git
a/tools/simgrid_convert_TI_traces.py
b/tools/simgrid_convert_TI_traces.py
index d3425f8f904f019f4c027c8a2d581a60d26c4056..dc9a1beca33b4203eeecd2fdd15beefbb90c7e95 100755
(executable)
--- a/
tools/simgrid_convert_TI_traces.py
+++ b/
tools/simgrid_convert_TI_traces.py
@@
-1,5
+1,10
@@
#!/usr/bin/env python3
#!/usr/bin/env python3
+# Copyright (c) 2018-2022. The SimGrid Team. All rights reserved.
+
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the license (GNU LGPL) which comes with this package.
+
'''
This script is intended to convert SMPI time independent traces (TIT) from the
old format (simgrid version <= 3.19) to the new format.
'''
This script is intended to convert SMPI time independent traces (TIT) from the
old format (simgrid version <= 3.19) to the new format.
@@
-65,8
+70,8
@@
def convert_trace(trace_path, base_path, output_path, trace_version="1.0"):
raise Exception("Invalid traces: No Isend or Irecv "
"found before the wait in line " +
str(line_num) + " in file " + old_file_path)
raise Exception("Invalid traces: No Isend or Irecv "
"found before the wait in line " +
str(line_num) + " in file " + old_file_path)
-
new_line =
insert_elem(split_line, 2, last_async_call_src)
-
new_line =
insert_elem(split_line, 3, last_async_call_dst)
+ insert_elem(split_line, 2, last_async_call_src)
+ insert_elem(split_line, 3, last_async_call_dst)
new_line = insert_elem(split_line, 4, "0")
if new_line is not None:
new_line = insert_elem(split_line, 4, "0")
if new_line is not None: