File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -31,16 +31,17 @@ def analyze_records():
31
31
mask_false = np .count_nonzero (np .logical_not (record .access_masks ))
32
32
total_store_bytes_true += mask_true * element_size
33
33
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
+ )
44
45
data = [["Grid Size" , tuple (grid_size )]]
45
46
data += [[op_type , count ] for op_type , count in op_type_counts .items ()]
46
47
data .append (["Masked Load Ratio" , overall_load_ratio ])
You can’t perform that action at this time.
0 commit comments