Browse Source

fix bad interaction between prio.c and round robin algorithm

Simon Archipoff 12 years ago
parent
commit
3db28a8828
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/sched_policies/prio.c

+ 1 - 1
tests/sched_policies/prio.c

@@ -77,7 +77,7 @@ run(struct starpu_sched_policy *policy)
 	for (i = 0; i < NTASKS; i++) {
 		struct starpu_task *task = starpu_task_create();
 
-		if (i%2) {
+		if (random()%2) {
 			task->cl = &clA;
 			task->priority=STARPU_MIN_PRIO;
 		} else {