瀏覽代碼

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];