From a2dd6f752d41d4b2a719711b7d20ffedd45f3572 Mon Sep 17 00:00:00 2001 From: Julian Hammer Date: Mon, 9 Nov 2020 12:35:13 +0100 Subject: [PATCH] added comment --- osaca/semantics/arch_semantics.py | 1 + 1 file changed, 1 insertion(+) diff --git a/osaca/semantics/arch_semantics.py b/osaca/semantics/arch_semantics.py index 8f6b59c..77f88ad 100755 --- a/osaca/semantics/arch_semantics.py +++ b/osaca/semantics/arch_semantics.py @@ -418,6 +418,7 @@ class ArchSemantics(ISASemantics): """Get the overall throughput sum separated by port of all instructions of a kernel.""" port_pressures = [instr['port_pressure'] for instr in kernel] # Essentially summing up each columns of port_pressures, where each column is one port + # and each row is one line of the kernel # round is necessary to ensure termination of ArchsSemantics.assign_optimal_throughput tp_sum = [round(sum(col), 2) for col in zip(*port_pressures)] return tp_sum