Browse Source

mlr: more descriptive name for the internal function doing validation of mlr models (so potential warning is easier to understand)

Luka Stanisic 8 years ago
parent
commit
5c6a4fda73
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/perfmodel/multiple_regression.c

+ 2 - 2
src/core/perfmodel/multiple_regression.c

@@ -247,7 +247,7 @@ int dgels_multiple_reg_coeff(double *mpar, double *my, long nn, unsigned ncoeff,
    Validating the accuracy of the coefficients.
    Validating the accuracy of the coefficients.
    For the the validation is extremely basic, but it should be improved.
    For the the validation is extremely basic, but it should be improved.
  */
  */
-void validate(double *coeff, unsigned ncoeff, const char *codelet_name)
+void starpu_validate_mlr(double *coeff, unsigned ncoeff, const char *codelet_name)
 {
 {
 	unsigned i;
 	unsigned i;
 	if (coeff[0] < 0)
 	if (coeff[0] < 0)
@@ -317,7 +317,7 @@ int _starpu_multiple_regression(struct starpu_perfmodel_history_list *ptr, doubl
 			return 1;
 			return 1;
 		}
 		}
 		/* Basic validation of the model accuracy */
 		/* Basic validation of the model accuracy */
-		validate(coeff, ncoeff, codelet_name);
+		starpu_validate_mlr(coeff, ncoeff, codelet_name);
 #else
 #else
 		_STARPU_DISP("Warning: StarPU was compiled with '--disable-mlr' option or on Windows machine, thus multiple linear regression model will not be computed.\n");
 		_STARPU_DISP("Warning: StarPU was compiled with '--disable-mlr' option or on Windows machine, thus multiple linear regression model will not be computed.\n");
 		for(i=0; i<ncoeff; i++)
 		for(i=0; i<ncoeff; i++)