소스 검색

StarPU now successfully passes the "dining philosophers" test without any
manual trick to enforce data ordering.

Cédric Augonnet 15 년 전
부모
커밋
57e8dfaf44
1개의 변경된 파일0개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 10
      tests/datawizard/dining_philosophers.c

+ 0 - 10
tests/datawizard/dining_philosophers.c

@@ -42,16 +42,6 @@ void submit_one_task(unsigned p)
 	unsigned left = p;
 	unsigned right = (p+1)%N;
 
-	/* TODO we should not have to order these ressources ! */
-	/* the last philosopher is left-handed ;) */
-	if (p == (N - 1))
-	{
-		unsigned tmp;
-		tmp = right;
-		right = left;
-		left = tmp;
-	}
-
 	task->buffers[0].handle = fork_handles[left];
 	task->buffers[0].mode = STARPU_RW;
 	task->buffers[1].handle = fork_handles[right];