Parallel for loop for one dimensional interval of indices.
More...
#include <TNL/Algorithms/ParallelFor.h>
|
template<typename Index , typename Function , typename... FunctionArgs> |
static void | exec (Index start, Index end, Function f, FunctionArgs... args) |
| Static method for the execution of the loop. More...
|
|
template<typename Index , typename Function , typename... FunctionArgs> |
static void | exec (Index start, Index end, typename Device::LaunchConfiguration launch_config, Function f, FunctionArgs... args) |
| Overload with custom launch configuration (which is ignored for TNL::Devices::Sequential).
|
|
template<typename Device = Devices::Sequential>
struct TNL::Algorithms::ParallelFor< Device >
Parallel for loop for one dimensional interval of indices.
- Template Parameters
-
◆ exec()
template<typename Device = Devices::Sequential>
template<typename Index , typename Function , typename... FunctionArgs>
Static method for the execution of the loop.
- Template Parameters
-
Index | is the type of the loop indices. |
Function | is the type of the functor to be called in each iteration (it is usually deduced from the argument used in the function call). |
FunctionArgs | is a variadic pack of types for additional parameters that are forwarded to the functor in every iteration. |
- Parameters
-
start | is the left bound of the iteration range [begin, end) . |
end | is the right bound of the iteration range [begin, end) . |
f | is the function to be called in each iteration. |
args | are additional parameters to be passed to the function f. |
The documentation for this struct was generated from the following file:
- src/TNL/Algorithms/ParallelFor.h