瀏覽代碼

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

Luka Stanisic 8 年之前
父節點
當前提交
5c6a4fda73
共有 1 個文件被更改,包括 2 次插入2 次删除
  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.
    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;
 	if (coeff[0] < 0)
@@ -317,7 +317,7 @@ int _starpu_multiple_regression(struct starpu_perfmodel_history_list *ptr, doubl
 			return 1;
 		}
 		/* Basic validation of the model accuracy */
-		validate(coeff, ncoeff, codelet_name);
+		starpu_validate_mlr(coeff, ncoeff, codelet_name);
 #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");
 		for(i=0; i<ncoeff; i++)