Browse Source

Always print system on bounddeps.

Samuel Thibault 14 years ago
parent
commit
24e6fb21f0
1 changed files with 9 additions and 9 deletions
  1. 9 9
      examples/lu/lu_example.c

+ 9 - 9
examples/lu/lu_example.c

@@ -325,15 +325,15 @@ int main(int argc, char **argv)
 	if (bound) {
 	if (bound) {
 		double min;
 		double min;
 		starpu_bound_stop();
 		starpu_bound_stop();
-#if 0
+		if (bounddeps) {
-		FILE *f = fopen("lu.pl", "w");
+			FILE *f = fopen("lu.pl", "w");
-		starpu_bound_print_lp(f);
+			starpu_bound_print_lp(f);
-		starpu_bound_print(stderr);
+			fprintf(stderr,"system printed to lu.pl\n");
-#else
+		} else {
-		starpu_bound_compute(&min);
+			starpu_bound_compute(&min);
-		if (min != 0.)
+			if (min != 0.)
-			fprintf(stderr, "theoretical min: %lf ms\n", min);
+				fprintf(stderr, "theoretical min: %lf ms\n", min);
-#endif
+		}
 	}
 	}
 
 
 	if (check)
 	if (check)