Skip to content
Snippets Groups Projects
Commit b62d58a3 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Gather into threads first not ranks

parent 087e81c9
No related branches found
No related tags found
2 merge requests!136Master,!70Include parallel sort tasks in task dump and add support for MPI dumps
...@@ -122,7 +122,7 @@ for line in range(num_lines): ...@@ -122,7 +122,7 @@ for line in range(num_lines):
if tic > 0 and toc > 0: if tic > 0 and toc > 0:
rank = int(data[line,0]) rank = int(data[line,0])
thread = int(data[line,1]) thread = int(data[line,1])
index = thread*nranks + rank index = rank*nranks + thread
tasks[index].append({}) tasks[index].append({})
tasks[index][-1]["type"] = types[ str(int(data[line,2])) ] tasks[index][-1]["type"] = types[ str(int(data[line,2])) ]
tasks[index][-1]["subtype"] = subtypes[str(int(data[line,3]))] tasks[index][-1]["subtype"] = subtypes[str(int(data[line,3]))]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment