Skip to content

Commit d73f810

Browse files
committed
Implement PR feedback
1 parent e0e7abf commit d73f810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Deeploy/TilingExtension/CodeTransformationPasses/TilingPrototypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ class ProfilingPrototypeMixIn(ABC):
9797
_printCycleContribution = NodeTemplate("""
9898
uint32_t total = ${measurementInput} + ${measurementKernel} + ${measurementOutput};
9999
uint32_t dma = ${measurementInput} + ${measurementOutput};
100-
float dma_percentage = (total == 0) ? 0 : dma * 100.0f / total;
100+
float overhead_percentage = (total == 0) ? 0 : dma * 100.0f / total;
101101
float kernel_percentage = (total == 0) ? 0 : ${measurementKernel} * 100.0f / total;
102-
printf("%s%u] Total :%6u cycles (%2.1f%% Kernel + %2.1f%% Overhad, %u + %u)\\n", ${prefixStr}, ${profileIdxVar}, total, kernel_percentage, dma_percentage, ${measurementKernel}, dma);
102+
printf("%s%u] Total :%6u cycles (%2.1f%% Kernel + %2.1f%% Overhead, %u + %u)\\n", ${prefixStr}, ${profileIdxVar}, total, kernel_percentage, overhead_percentage , ${measurementKernel}, dma);
103103
""")
104104

105105
_printLoopTeardown = NodeTemplate("""

0 commit comments

Comments
 (0)