Skip to content

Commit

Permalink
[Cilkscale_vis] Minor code cleanup, to match the code to parse the ou…
Browse files Browse the repository at this point in the history
…tput of lscpu to the terms used in lscpu's output.
  • Loading branch information
neboat committed Sep 24, 2021
1 parent b949786 commit 0baa3e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Cilkscale_vis/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ def get_cpu_ordering():
continue
items = l.strip().split(',')
cpu_id = int(items[0])
node_id = int(items[1])
core_id = int(items[1])
socket_id = int(items[2])
avail_cpus.append((socket_id, node_id, cpu_id))
avail_cpus.append((socket_id, core_id, cpu_id))

avail_cpus = sorted(avail_cpus)
ret = []
added_nodes = dict()
added_cores = dict()
for x in avail_cpus:
if x[1] not in added_nodes:
added_nodes[x[1]] = True
if x[1] not in added_cores:
added_cores[x[1]] = True
else:
continue
ret.append((x[2], x[0]))
Expand Down

0 comments on commit 0baa3e6

Please sign in to comment.