Ver código fonte

Always print system on bounddeps.

Samuel Thibault 14 anos atrás
pai
commit
24e6fb21f0
1 arquivos alterados com 9 adições e 9 exclusões
  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) {
 		double min;
 		starpu_bound_stop();
-#if 0
-		FILE *f = fopen("lu.pl", "w");
-		starpu_bound_print_lp(f);
-		starpu_bound_print(stderr);
-#else
-		starpu_bound_compute(&min);
-		if (min != 0.)
-			fprintf(stderr, "theoretical min: %lf ms\n", min);
-#endif
+		if (bounddeps) {
+			FILE *f = fopen("lu.pl", "w");
+			starpu_bound_print_lp(f);
+			fprintf(stderr,"system printed to lu.pl\n");
+		} else {
+			starpu_bound_compute(&min);
+			if (min != 0.)
+				fprintf(stderr, "theoretical min: %lf ms\n", min);
+		}
 	}
 
 	if (check)