class gpr::linalg::LocalExecutor¶
Bounded host execution of independent outputs, without MPI calls or numerical reductions. Each callback owns its output storage. Exceptions reach the calling thread after workers join, in increasing work-index order.
#include <gpr/linalg/LocalExecutor.h>
class LocalExecutor {
public:
// enums
enum Grain;
// construction
LocalExecutor();
LocalExecutor(int concurrency);
// methods
int concurrency() const;
template <class Operation>
void forEach(std::size_t count, Operation&& operation, Grain grain = Grain::Fine) const;
static bool parallelAvailable();
};