Browse Source

Optimize getting the current task

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

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

@@ -460,7 +460,7 @@ int _starpu_cuda_driver_run_once(struct _starpu_worker *args)
 	struct starpu_task *task;
 	struct _starpu_job *j;
 
-	task = starpu_task_get_current();
+	task = args->current_task;
 
 	if (task)
 	{