starpu_worker_can_execute_task_impl

Function starpu_worker_can_execute_task_impl 

Source
pub unsafe extern "C" fn starpu_worker_can_execute_task_impl(
    workerid: c_uint,
    task: *mut starpu_task,
    impl_mask: *mut c_uint,
) -> c_int
Expand description

Check if the worker specified by workerid can execute the codelet and return which implementation numbers can be used. Schedulers need to call it before assigning a task to a worker, otherwise the task may fail to execute. This should be preferred rather than calling starpu_worker_can_execute_task() for each and every implementation. It can also be used with impl_mask == NULL to check for at least one implementation without determining which. See \ref DefiningANewBasicSchedulingPolicy for more details.