Browse Source

Fix task accounting when the scheduler erroneously puts a non-cuda task to a cuda device

Samuel Thibault 10 years ago
parent
commit
b7efebe04d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/drivers/cuda/driver_cuda.c

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

@@ -689,6 +689,7 @@ int _starpu_cuda_driver_run_once(struct _starpu_worker_set *worker_set)
 		if (!_STARPU_CUDA_MAY_PERFORM(j))
 		if (!_STARPU_CUDA_MAY_PERFORM(j))
 		{
 		{
 			/* this is neither a cuda or a cublas task */
 			/* this is neither a cuda or a cublas task */
+			worker->ntasks--;
 			_starpu_push_task_to_workers(task);
 			_starpu_push_task_to_workers(task);
 			continue;
 			continue;
 		}
 		}