소스 검색

follow-up r15889 for MIC: we need to update after_work_busy_barrier for parallel tasks

Samuel Thibault 7 년 전
부모
커밋
0538b6f132
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/drivers/mp_common/source_common.c

+ 1 - 0
src/drivers/mp_common/source_common.c

@@ -60,6 +60,7 @@ static int _starpu_src_common_finalize_job (struct _starpu_job *j, struct _starp
 	if(j->task_size > 1)
 	{
 		struct _starpu_combined_worker * cb_worker = _starpu_get_combined_worker_struct(worker->combined_workerid);
+		(void) STARPU_ATOMIC_ADD(&j->after_work_busy_barrier, -1);
 
 		STARPU_PTHREAD_MUTEX_LOCK(&cb_worker->count_mutex);
 		count = cb_worker->count--;