浏览代码

Optionally tell that tasks can not be divided

Samuel Thibault 14 年之前
父节点
当前提交
0ac5644f60
共有 1 个文件被更改,包括 13 次插入0 次删除
  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);