OmniSciDB
a5dc49c757
|
Classes | |
class | task_group |
Functions | |
template<typename Fn , typename... Args, typename Result = std::result_of_t<Fn && (Args && ...)>> | |
future< Result > | async (Fn &&fn, Args &&...args) |
template<typename Int , typename Body , typename Partitioner = auto_partitioner> | |
void | parallel_for (const blocked_range< Int > &range, const Body &body, const Partitioner &p=Partitioner()) |
Parallel iteration over range with default partitioner. More... | |
template<typename Index , typename Function , typename Partitioner = auto_partitioner> | |
void | parallel_for (Index first, Index last, const Function &f, const Partitioner &p=Partitioner()) |
template<typename Int , typename Value , typename RealBody , typename Reduction , typename Partitioner = auto_partitioner> | |
Value | parallel_reduce (const blocked_range< Int > &range, const Value &identity, const RealBody &real_body, const Reduction &reduction, const Partitioner &p=Partitioner()) |
Parallel iteration with reduction. More... | |
Variables | |
constexpr auto | launch = std::launch::THREADING_STD_LAUNCH |
future<Result> threading_std::async | ( | Fn && | fn, |
Args &&... | args | ||
) |
Definition at line 105 of file threading_std.h.
References run_benchmark_import::args, threading_serial::async(), and launch.
Referenced by threading_std::task_group::run().
void threading_std::parallel_for | ( | const blocked_range< Int > & | range, |
const Body & | body, | ||
const Partitioner & | p = Partitioner() |
||
) |
Parallel iteration over range with default partitioner.
Definition at line 133 of file threading_std.h.
References threading_serial::async(), threading_common::blocked_range< Value >::begin(), cpu_threads(), threading_common::blocked_range< Value >::end(), launch, and threading_common::blocked_range< Value >::size().
Referenced by parallel_for().
void threading_std::parallel_for | ( | Index | first, |
Index | last, | ||
const Function & | f, | ||
const Partitioner & | p = Partitioner() |
||
) |
Parallel iteration over a range of integers with a default step value and default partitioner
Definition at line 159 of file threading_std.h.
References threading_common::blocked_range< Value >::begin(), threading_common::blocked_range< Value >::end(), f(), and parallel_for().
Value threading_std::parallel_reduce | ( | const blocked_range< Int > & | range, |
const Value & | identity, | ||
const RealBody & | real_body, | ||
const Reduction & | reduction, | ||
const Partitioner & | p = Partitioner() |
||
) |
Parallel iteration with reduction.
Definition at line 182 of file threading_std.h.
References threading_serial::async(), threading_common::blocked_range< Value >::begin(), cpu_threads(), threading_common::blocked_range< Value >::end(), launch, and threading_common::blocked_range< Value >::size().
constexpr auto threading_std::launch = std::launch::THREADING_STD_LAUNCH |
Definition at line 100 of file threading_std.h.
Referenced by async(), parallel_for(), and parallel_reduce().