plot_3vars.py: added comments about plotting MFLOPS

benchmark.cpp: modification to printf format string to eliminate compile warning
This commit is contained in:
Wes Bethel 2023-07-29 08:44:37 -07:00
parent 2479c0a624
commit d96c12ed67

View File

@ -42,6 +42,13 @@ xlocs = [i for i in range(len(problem_sizes))]
plt.xticks(xlocs, problem_sizes)
# here, we are plotting the raw values read from the input .csv file, which
# we interpret as being "time" that maps directly to the y-axis.
#
# what if we want to plot MFLOPS instead? How do we compute MFLOPS from
# time and problem size? You may need to add some code here to compute
# MFLOPS, then modify the plt.plot() lines below to plot MFLOPS rather than time.
plt.plot(code1_time, "r-o")
plt.plot(code2_time, "b-x")
plt.plot(code3_time, "g-^")