Browse Source

Optionally tell that tasks can not be divided

Samuel Thibault 14 years ago
parent
commit
0ac5644f60
1 changed files with 13 additions and 0 deletions
  1. 13 0
      src/profiling/bound.c

+ 13 - 0
src/profiling/bound.c

@@ -171,6 +171,19 @@ void starpu_bound_print_lp(FILE *output)
 				fprintf(output, "\t+%ld", tp->cl->per_worker_stats[w]);
 			fprintf(output, "\t*/\n\n");
 		}
+
+		/* Optionally tell that tasks can not be divided */
+		fprintf(output, "int ");
+		int first = 1;
+		for (w = 0; w < nw; w++)
+			for (t = 0, tp = task_pools; tp; t++, tp = tp->next) {
+				if (!first)
+					fprintf(output, ",");
+				else
+					first = 0;
+				fprintf(output, "w%dt%dn", w, t);
+			}
+		fprintf(output, ";\n");
 	}
 
 	PTHREAD_MUTEX_UNLOCK(&mutex);