Bläddra i källkod

working, no need for printfs

Luka Stanisic 9 år sedan
förälder
incheckning
3d3b7a456d
1 ändrade filer med 1 tillägg och 3 borttagningar
  1. 1 3
      src/core/perfmodel/perfmodel.c

+ 1 - 3
src/core/perfmodel/perfmodel.c

@@ -136,8 +136,7 @@ static double common_task_expected_perf(struct starpu_perfmodel *model, struct s
 
 static double starpu_mymodel_expected_perf(struct starpu_perfmodel *model, struct starpu_perfmodel_arch* arch, struct starpu_task *task, unsigned nimpl)
 {
-	printf("\nInside mymodel_expected_perf, before the ASSERT");
-	//STARPU_ASSERT_MSG(model->cost_function, "STARPU_MYMODEL requires mymodel cost_function to be defined");
+	STARPU_ASSERT_MSG(model->cost_function, "STARPU_MYMODEL requires mymodel cost_function to be defined");
 	return model->cost_function(task, nimpl);
 }
 
@@ -194,7 +193,6 @@ static double starpu_model_expected_perf(struct starpu_task *task, struct starpu
 			case STARPU_NL_REGRESSION_BASED:
 				return _starpu_non_linear_regression_based_job_expected_perf(model, arch, j,nimpl);
 			case STARPU_MYMODEL:
-				printf("\nCall mymodel_expected function!");
 				return starpu_mymodel_expected_perf(model, arch, task, nimpl);
 			default:
 				STARPU_ABORT();