소스 검색

cuda: drop optimization

Returning early is confusing since the condition would rather be whether
_starpu_get_multi_worker_task returned non-0. The workers loop
terminates very quickly otherwise anyway, so avoid the confusion.
Samuel Thibault 4 년 전
부모
커밋
b89597eecd
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      src/drivers/cuda/driver_cuda.c

+ 0 - 3
src/drivers/cuda/driver_cuda.c

@@ -950,9 +950,6 @@ int _starpu_cuda_driver_run_once(struct _starpu_worker_set *worker_set)
 #ifdef STARPU_SIMGRID
 	if (!res)
 		starpu_pthread_wait_wait(&worker0->wait);
-#else
-	if (!res)
-		return 0;
 #endif
 
 	for (i = 0; i < (int) worker_set->nworkers; i++)