tf::GuidedPartitioner class

class to construct a guided partitioner for scheduling parallel algorithms

The size of a partition is proportional to the number of unassigned iterations divided by the number of workers, and the size will gradually decrease to the given chunk size. The last partition may be smaller than the chunk size.

Base classes

class PartitionerBase
class to derive a partitioner for scheduling parallel algorithms

Constructors, destructors, conversion operators

GuidedPartitioner()
default constructor
GuidedPartitioner(size_t sz) explicit
construct a guided partitioner with the given chunk size