Skip to content

Commit 1772b6e

Browse files
tejas3070Tejas Ramesh
andauthored
[DEV] Fixed Indentation issue in the Analyzer (#23)
Co-authored-by: Tejas Ramesh <[email protected]>
1 parent 72f6f6c commit 1772b6e

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

triton_viz/analysis.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,17 @@ def analyze_records():
3131
mask_false = np.count_nonzero(np.logical_not(record.access_masks))
3232
total_store_bytes_true += mask_true * element_size
3333
total_store_bytes_attempted += (mask_true + mask_false) * element_size
34-
overall_load_ratio = (
35-
total_load_bytes_true / total_load_bytes_attempted
36-
if total_load_bytes_attempted > 0
37-
else 0
38-
)
39-
overall_store_ratio = (
40-
total_store_bytes_true / total_store_bytes_attempted
41-
if total_store_bytes_attempted > 0
42-
else 0
43-
)
34+
35+
overall_load_ratio = (
36+
total_load_bytes_true / total_load_bytes_attempted
37+
if total_load_bytes_attempted > 0
38+
else 0
39+
)
40+
overall_store_ratio = (
41+
total_store_bytes_true / total_store_bytes_attempted
42+
if total_store_bytes_attempted > 0
43+
else 0
44+
)
4445
data = [["Grid Size", tuple(grid_size)]]
4546
data += [[op_type, count] for op_type, count in op_type_counts.items()]
4647
data.append(["Masked Load Ratio", overall_load_ratio])

0 commit comments

Comments
 (0)