Explorar o código

heft: remove useless assignments.

_starpu_create_fifo() already initializes the fields of our fifos.
Cyril Roelandt %!s(int64=12) %!d(string=hai) anos
pai
achega
8d66c296e5
Modificáronse 1 ficheiros con 0 adicións e 6 borrados
  1. 0 6
      src/sched_policies/heft.c

+ 0 - 6
src/sched_policies/heft.c

@@ -96,12 +96,6 @@ static void heft_init(struct starpu_machine_topology *topology,
 	for (workerid = 0; workerid < nworkers; workerid++)
 	{
 		queue_array[workerid] = _starpu_create_fifo();
-		struct _starpu_fifo_taskq *fifo = queue_array[workerid];
-		
-		fifo->exp_start = starpu_timing_now();
-		fifo->exp_len = 0.0;
-		fifo->exp_end = fifo->exp_start;
-		fifo->ntasks = 0;
 
 		_STARPU_PTHREAD_MUTEX_INIT(&sched_mutex[workerid], NULL);
 		_STARPU_PTHREAD_COND_INIT(&sched_cond[workerid], NULL);