Pull my work, according to my task index.
my_tasks(task_id, task_cnt, work)
task_id | integer index of task within all tasks. One-based. |
---|---|
task_cnt | integer total number of tasks. |
work | Data frame with row and column of tile. |
2D array that is (row, col) by work items.
The math here is so that, if the tasks don't split evenly, there isn't a single task with only one thing to do. The first few tasks get one more, and the rest get one less.