Skip to content

Commit e4bf935

Browse files
Add greek mu
1 parent 805fd7b commit e4bf935

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/scripts/csv_to_md.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ def get_emoji(d, stdev):
3535
emoji = get_emoji(diff, stdev)
3636
table.append([name, int(mean), f'{stdev:.2f}', int(diff), f'{impact:.2f}', emoji])
3737

38-
header = ['name', 'mean (ms)', 'stdev \u03C3', 'diff \u0394', '\u0394 / \u03C3', '']
38+
header = ['name', 'mean (\u03BCs)', 'stdev \u03C3', 'diff \u0394', '\u0394 / \u03C3', '']
3939
print(tab.tabulate(table, header, tablefmt="github"))

.github/scripts/profiler_rocm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import argparse
22
import csv
3-
import math
43
import statistics
54

65
parser = argparse.ArgumentParser()
@@ -25,8 +24,9 @@
2524

2625
data = [["name", "time", "stdev"]]
2726
for name, time_list in time_dict.items():
28-
mean = math.fsum(time_list) / args.runs
29-
stdev = 0 if args.runs == 1 else statistics.stdev(time_list) * len(time_list) / args.runs
27+
count = len(time_list) / args.runs
28+
mean = statistics.mean(time_list) * count
29+
stdev = 0 if args.runs == 1 else statistics.stdev(time_list) * count
3030
data.append([name, mean, stdev])
3131

3232
with open(args.output, 'w') as csv_file:

0 commit comments

Comments
 (0)