瀏覽代碼

starpu_perfmodel_plot: Fix gflop/s deviation formula

Samuel Thibault 4 年之前
父節點
當前提交
81e91323e3
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      tools/starpu_perfmodel_plot.c

+ 2 - 4
tools/starpu_perfmodel_plot.c

@@ -371,13 +371,11 @@ static void display_history_based_perf_models(FILE *gnuplot_file, struct starpu_
 							if (options->gflops)
 								if (options->energy)
 									fprintf(datafile, "\t%-15le\t%-15le", entry->flops / entry->mean,
-										entry->flops / (entry->mean + entry->deviation) -
-										entry->flops / entry->mean
+										entry->flops * entry->deviation / (entry->mean * entry->mean)
 										);
 								else
 									fprintf(datafile, "\t%-15le\t%-15le", entry->flops / (entry->mean * 1000),
-										entry->flops / ((entry->mean + entry->deviation) * 1000) -
-										entry->flops / (entry->mean * 1000)
+										entry->flops * entry->deviation / (entry->mean * entry->mean * 1000)
 										);
 							else
 								if (options->energy)