浏览代码

examples/sched_ctx/sched_ctx.c: comment out functions calls which segfault

Nathalie Furmento 12 年之前
父节点
当前提交
58695ba1a4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/sched_ctx/sched_ctx.c

+ 2 - 2
examples/sched_ctx/sched_ctx.c

@@ -99,7 +99,7 @@ int main(int argc, char **argv)
 	/* tell starpu when you finished submitting tasks to this context
 	/* tell starpu when you finished submitting tasks to this context
 	   in order to allow moving resources from this context to the inheritor one
 	   in order to allow moving resources from this context to the inheritor one
 	   when its corresponding tasks finished executing */
 	   when its corresponding tasks finished executing */
-	starpu_sched_ctx_finished_submit(sched_ctx1);
+//	starpu_sched_ctx_finished_submit(sched_ctx1);
 
 
 	for (i = 0; i < ntasks/2; i++)
 	for (i = 0; i < ntasks/2; i++)
 	{
 	{
@@ -114,7 +114,7 @@ int main(int argc, char **argv)
 	}
 	}
 
 
 
 
-	starpu_sched_ctx_finished_submit(sched_ctx2);
+//	starpu_sched_ctx_finished_submit(sched_ctx2);
 
 
 	/* wait for all tasks at the end*/
 	/* wait for all tasks at the end*/
 	starpu_task_wait_for_all();
 	starpu_task_wait_for_all();