Skip to content

Commit

Permalink
Add png curve generation to starpu_perfmodel_plot
Browse files Browse the repository at this point in the history
  • Loading branch information
nfurmento committed Aug 19, 2024
1 parent c45527c commit 29e2f37
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ Small features:
* Allow scheduling policies to be loaded with STARPU_SCHED&co but
not to be in the list of predefined policies

StarPU 1.4.8
==============================================
Small features:
* Add png curve generation to starpu_perfmodel_plot

StarPU 1.4.7
==============================================
Small changes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ execution time on CPUs was about 25ms, with a 0.2ms standard deviation, over
8 samples. It is a good idea to check this before doing actual performance
measurements.

A graph can be drawn by using the tool <c>starpu_perfmodel_plot</c>:
A graph (both in postscript and png format) can be drawn by using the tool <c>starpu_perfmodel_plot</c>:

\verbatim
$ starpu_perfmodel_plot -s starpu_slu_lu_model_getrf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,12 +615,14 @@ $ tools/starpu_perfmodel_display -x -s non_linear_memset_regression_based

The tool <c>starpu_perfmodel_plot</c> can be used to draw performance
models. It writes a <c>.gp</c> file in the current directory, to be
run with the tool <c>gnuplot</c>, which shows the corresponding curve.
run with the tool <c>gnuplot</c>, which generates the corresponding
curve both in postscript and png format.

\verbatim
$ tools/starpu_perfmodel_plot -s non_linear_memset_regression_based
$ gnuplot starpu_non_linear_memset_regression_based.gp
$ gv starpu_non_linear_memset_regression_based.png
$ gv starpu_non_linear_memset_regression_based.eps
$ geeqie starpu_non_linear_memset_regression_based.png
\endverbatim

\image html starpu_non_linear_memset_regression_based.png
Expand Down Expand Up @@ -697,7 +699,7 @@ proper unit in the graph:
\verbatim
$ tools/starpu_perfmodel_plot -e -s non_linear_memset_regression_based_energy
$ gnuplot starpu_non_linear_memset_regression_based_energy.gp
$ gv starpu_non_linear_memset_regression_based_energy.png
$ gv starpu_non_linear_memset_regression_based_energy.eps
\endverbatim

\image html starpu_non_linear_memset_regression_based_energy.png
Expand All @@ -708,7 +710,7 @@ The <c>-f</c> option can also be used to display the performance in terms of GFl
\verbatim
$ tools/starpu_perfmodel_plot -f -e -s non_linear_memset_regression_based_energy
$ gnuplot starpu_gflops_non_linear_memset_regression_based_energy.gp
$ gv starpu_gflops_non_linear_memset_regression_based_energy.png
$ gv starpu_gflops_non_linear_memset_regression_based_energy.eps
\endverbatim

\image html starpu_gflops_non_linear_memset_regression_based_energy.png
Expand Down
3 changes: 3 additions & 0 deletions tools/starpu_perfmodel_plot.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,9 @@ static void display_selected_models(FILE *gnuplot_file, struct starpu_perfmodel
display_all_perf_models(gnuplot_file, model, &first, options);
display_history_based_perf_models(gnuplot_file, model, energy_model, &first, options);

fprintf(gnuplot_file, "\nset term png\n");
fprintf(gnuplot_file, "set output \"starpu_%s%s.png\"\n", options->energy_symbol?"power_":options->gflops?"gflops_":"", options->symbol);
fprintf(gnuplot_file, "replot\n");
free(symbol);
}

Expand Down

0 comments on commit 29e2f37

Please sign in to comment.