ParallelParams

Declared in core/SearchUtils.h; the same struct on the site of Doxygen.

inheritance diagram of ParallelParams

struct ParallelParams

the parameters shared by the parallel searches

The number of workers, and, for the searches that send their nodes to their owners, the messages in a batch, the steps (expansions or evaluations) between two flushes of the outboxes and the seed of the owners; each search sets its own defaults of batch and flush_period.

Subclassed by BasicParallelBBOptions< Value >, BasicParallelBBOptions< V >, ParallelOptions

Public Functions

inline void normalize(void) noexcept

sets to 1 any parameter that is 0

Public Members

unsigned threads = 1

the number of workers

std::size_t batch = 64

nodes packed in a message

unsigned flush_period = 64

steps between flushes of outboxes

std::uint64_t seed = 1

seed of the owners