starpu_task_declare_deps_array

Function starpu_task_declare_deps_array 

Source
pub unsafe extern "C" fn starpu_task_declare_deps_array(
    task: *mut starpu_task,
    ndeps: c_uint,
    task_array: *mut [*mut starpu_task; 0],
)
Expand description

Declare task dependencies between a \p task and an array of tasks of length \p ndeps. This function must be called prior to the submission of the task, but it may called after the submission or the execution of the tasks in the array, provided the tasks are still valid (i.e. they were not automatically destroyed). Calling this function on a task that was already submitted or with an entry of \p task_array that is no longer a valid task results in an undefined behaviour. If \p ndeps is 0, no dependency is added. It is possible to call starpu_task_declare_deps_array() several times on the same task, in this case, the dependencies are added. It is possible to have redundancy in the task dependencies. See \ref TasksAndTagsDependencies for more details.