Debug logging during intensities calculations when no flops recorded (#608)

Added debug log for when no flops are recorded (total_flops is 0), so AI points will not be plotted.
Removed commented out print statement that is not functional- contains nonexistent method call.

Signed-off-by: Carrie Fallows <Carrie.Fallows@amd.com>
This commit is contained in:
cfallows-amd
2025-03-14 12:37:19 -04:00
کامیت شده توسط GitHub
والد 6827330135
کامیت 1c237c1382
+7 -1
مشاهده پرونده
@@ -447,13 +447,19 @@ def calc_ai(mspec, sort_type, ret_df):
myList.sort(key=lambda x: x.totalDuration, reverse=True)
# print("Top 5 intensities ('{}')...".format(roof_details["sort"]))
intensities = {"ai_l1": [], "ai_l2": [], "ai_hbm": []}
curr_perf = []
kernelNames = []
i = 0
# Create list of top 5 intensities
while i < TOP_N and i != len(myList):
if myList[i].total_flops == 0:
console_debug(
"No flops counted for {}, arithmetic intensities will not display on plots.".format(
myList[i].KernelName
)
)
kernelNames.append(myList[i].KernelName)
(
intensities["ai_l1"].append(myList[i].total_flops / myList[i].L1cache_data)