starpu_task_get_current_data_node

Function starpu_task_get_current_data_node 

Source
pub unsafe extern "C" fn starpu_task_get_current_data_node(
    i: c_uint,
) -> c_int
Expand description

Return the memory node number of parameter \p i of the task currently executed, or -1 if it is called either from a thread that is not a task or simply because there is no task being executed at the moment.

Usually, the returned memory node number is simply the memory node for the current worker. That may however be different when using e.g. starpu_codelet::specific_nodes.

See \ref SpecifyingATargetNode for more details.