Browse Source

Fix actually distributing tasks over all workers

Samuel Thibault 10 years ago
parent
commit
c9f1715e51
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/sched_policies/random_policy.c

+ 1 - 2
src/sched_policies/random_policy.c

@@ -52,12 +52,11 @@ static int _random_push_task(struct starpu_task *task, unsigned prio)
 			alpha_sum += speedup;
 			speedup_arr[size] = speedup;
 			worker_arr[size++] = worker;
-			break;
 		}
 	}
 
 	double random = starpu_drand48()*alpha_sum;
-//	_STARPU_DEBUG("my rand is %e\n", random);
+	//printf("my rand is %e over %e\n", random, alpha_sum);
 
 	if(size == 0)
 		return -ENODEV;