mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-04 10:10:08 +01:00
keep dependency paths as generators instead of lists
This commit is contained in:
@@ -88,11 +88,12 @@ class KernelDG(nx.DiGraph):
|
||||
loopcarried_deps = []
|
||||
paths = []
|
||||
for instr in kernel:
|
||||
paths += list(nx.algorithms.simple_paths.all_simple_paths(
|
||||
paths.append(nx.algorithms.simple_paths.all_simple_paths(
|
||||
dg, instr.line_number, instr.line_number + offset))
|
||||
|
||||
paths_set = set()
|
||||
for path in paths:
|
||||
for path_gen in paths:
|
||||
for path in path_gen:
|
||||
lat_sum = 0.0
|
||||
# extend path by edge bound latencies (e.g., store-to-load latency)
|
||||
lat_path = []
|
||||
|
||||
Reference in New Issue
Block a user