grape.utils.chunk_it

chunk_it(elements, n_procs)[source]

Divide elements in chunks according to number of processes.

Parameters
  • elements (list) – list of elements to be divided in chunks

  • n_procs (int) – number of available processes

Returns

list of elements to be assigned to every process

Return type

list