Преглед изворни кода

implicit: Fix termination of some MPI codes

Samuel Thibault пре 5 година
родитељ
комит
61875f518b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/core/dependencies/implicit_data_deps.c

+ 1 - 1
src/core/dependencies/implicit_data_deps.c

@@ -94,7 +94,7 @@ static void _starpu_add_accessor(starpu_data_handle_t handle, struct starpu_task
 		_STARPU_DEP_DEBUG("dep ID%lu -> %p\n", handle->last_submitted_ghost_sync_id, pre_sync_task);
 	}
 
-	if (submit_pre_sync && !pre_sync_task->cl)
+	if (*submit_pre_sync && !pre_sync_task->cl)
 	{
 		/* Add a reference to be released in _starpu_handle_job_termination */
 		_starpu_spin_lock(&handle->header_lock);