Subclassed by feasst::ThreadOMP
is_enabled() const = 0¶
Return true if parallel library is enabled.
num() const = 0¶
Return the number of threads.
thread() const = 0¶
Return the thread index;.
in_chunk(const int iteration, const int total_iterations, const int node = 0, const int num_nodes = 1) const¶
node: Index of node, for parallelizing over multiple nodes. Each node is assumed to have the same number of threads.
num_nodes: Total number of nodes.
Return true if the current iteration of a large task that is broken into chunks is to be performed by this processor.
- virtual bool