소스 검색

Do not regenerate last iteration of tasks B and C, otherwise they keep the data busy and it can not be unregistered

Samuel Thibault 12 년 전
부모
커밋
ebd1392925
1개의 변경된 파일과 5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      tests/main/subgraph_repeat_regenerate.c

+ 5 - 0
tests/main/subgraph_repeat_regenerate.c

@@ -86,6 +86,11 @@ static void callback_task_D(void *arg STARPU_ATTRIBUTE_UNUSED)
 	else
 	{
 		int ret;
+		if (loop_cnt == niter-1)
+		{
+			taskB.regenerate = 0;
+			taskC.regenerate = 0;
+		}
 		STARPU_PTHREAD_MUTEX_UNLOCK(&mutex);
 		/* Let's go for another iteration */
 		ret = starpu_task_submit(&taskA);