소스 검색

best_impl: Fix setting length for chosen impl

Samuel Thibault 6 년 전
부모
커밋
f9456e3a3d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/sched_policies/component_best_implementation.c

+ 1 - 0
src/sched_policies/component_best_implementation.c

@@ -37,6 +37,7 @@ static int find_best_impl(unsigned sched_ctx_id, struct starpu_task * task, int
 		/* No perfmodel, first available will be fine */
 		starpu_worker_can_execute_task_first_impl(workerid, task, &impl);
 		best_impl = impl;
+		len = 0.0;
 	}
 	else for(impl = 0; impl < STARPU_MAXIMPLEMENTATIONS; impl++)
 	{