Browse Source

Do not plot the linear regression if a non-linear regression is available

Samuel Thibault 13 years ago
parent
commit
56830a34e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/starpu_perfmodel_plot.c

+ 1 - 1
tools/starpu_perfmodel_plot.c

@@ -162,7 +162,7 @@ static void display_perf_model(FILE *gnuplot_file, struct starpu_perfmodel_t *mo
 #endif
 #endif
 
 
 	/* Only display the regression model if we could actually build a model */
 	/* Only display the regression model if we could actually build a model */
-	if (arch_model->regression.valid)
+	if (arch_model->regression.valid && !arch_model->regression.nl_valid)
 	{
 	{
 		print_comma(gnuplot_file, first);
 		print_comma(gnuplot_file, first);