浏览代码

mpi_lu: add tasks colors

Samuel Thibault 4 年之前
父节点
当前提交
23ffda06b9
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      mpi/examples/mpi_lu/pxlu.c

+ 4 - 0
mpi/examples/mpi_lu/pxlu.c

@@ -271,6 +271,7 @@ static void create_task_11_real(unsigned k)
 	struct starpu_task *task = create_task(TAG11(k));
 	struct starpu_task *task = create_task(TAG11(k));
 
 
 	task->cl = &STARPU_PLU(cl11);
 	task->cl = &STARPU_PLU(cl11);
+	task->color = 0xffff00;
 
 
 	task->cl_arg = create_debug_info(k, k, k);
 	task->cl_arg = create_debug_info(k, k, k);
 
 
@@ -430,6 +431,7 @@ static void create_task_12_real(unsigned k, unsigned j)
 #endif
 #endif
 //	task->cl = &STARPU_PLU(cl12);
 //	task->cl = &STARPU_PLU(cl12);
 	task->cl = &STARPU_PLU(cl21);
 	task->cl = &STARPU_PLU(cl21);
+	task->color = 0x8080ff;
 
 
 	task->cl_arg = create_debug_info(j, j, k);
 	task->cl_arg = create_debug_info(j, j, k);
 
 
@@ -615,6 +617,7 @@ static void create_task_21_real(unsigned k, unsigned i)
 #endif
 #endif
 //	task->cl = &STARPU_PLU(cl21);
 //	task->cl = &STARPU_PLU(cl21);
 	task->cl = &STARPU_PLU(cl12);
 	task->cl = &STARPU_PLU(cl12);
+	task->color = 0x8080c0;
 
 
 	task->cl_arg = create_debug_info(i, i, k);
 	task->cl_arg = create_debug_info(i, i, k);
 
 
@@ -713,6 +716,7 @@ static void create_task_22_real(unsigned k, unsigned i, unsigned j)
 	struct starpu_task *task = create_task(TAG22(k, i, j));
 	struct starpu_task *task = create_task(TAG22(k, i, j));
 
 
 	task->cl = &STARPU_PLU(cl22);
 	task->cl = &STARPU_PLU(cl22);
+	task->color = 0x00ff00;
 
 
 	task->cl_arg = create_debug_info(i, j, k);
 	task->cl_arg = create_debug_info(i, j, k);