It is easier not to change anything in create_task(): - the return values of starpu_worker_get_ids_by_type are checked, even if it is a bit later after they have been called. - it does not really matter to call starpu_worker_get_ids_by_type for all possible PUs the first time create_task() is called.
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|