Skip to content

Commit

Permalink
[DEV] Fixed Indentation issue in the Analyzer (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: Tejas Ramesh <tramesh2@gmu.edu>
  • Loading branch information
tejas3070 and Tejas Ramesh authored Mar 28, 2024
1 parent 72f6f6c commit 1772b6e
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions triton_viz/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,17 @@ def analyze_records():
mask_false = np.count_nonzero(np.logical_not(record.access_masks))
total_store_bytes_true += mask_true * element_size
total_store_bytes_attempted += (mask_true + mask_false) * element_size
overall_load_ratio = (
total_load_bytes_true / total_load_bytes_attempted
if total_load_bytes_attempted > 0
else 0
)
overall_store_ratio = (
total_store_bytes_true / total_store_bytes_attempted
if total_store_bytes_attempted > 0
else 0
)

overall_load_ratio = (
total_load_bytes_true / total_load_bytes_attempted
if total_load_bytes_attempted > 0
else 0
)
overall_store_ratio = (
total_store_bytes_true / total_store_bytes_attempted
if total_store_bytes_attempted > 0
else 0
)
data = [["Grid Size", tuple(grid_size)]]
data += [[op_type, count] for op_type, count in op_type_counts.items()]
data.append(["Masked Load Ratio", overall_load_ratio])
Expand Down

0 comments on commit 1772b6e

Please sign in to comment.