Skip to content

Commit

Permalink
fix(autotuner): minor
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrothenberger committed Oct 14, 2024
1 parent 328a60d commit 781a66c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discopop_library/EmpiricalAutotuning/Autotuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def run(arguments: AutotunerArguments) -> None:
+ str(round(loop_tuple[4], 3))
+ "s"
)
# check if the loop contributes more than 1% to the total runtime
loop_contributes_significantly = loop_tuple[4] > (max_avg_runtime / 100)
# check if the loop contributes more than 1% to the total runtime, if hotspot information exists
loop_contributes_significantly = (loop_tuple[4] > (max_avg_runtime / 100)) or not hotspot_information
if not loop_contributes_significantly:
statistics_graph.add_child(loop_str, color=NodeColor.ORANGE)
else:
Expand Down

0 comments on commit 781a66c

Please sign in to comment.