![]() |
ATLAS Offline Software
|
Condition, Before, After and Funcs must all be functor classes.
More...
#include <IterateUntilCondition.h>
Static Public Member Functions | |
| template<class ... Args> | |
| static void | execute (const bool use_native_sync, const dim3 &grid_size, const dim3 &block_size, size_t shared_memory, cudaStream_t stream, Storage *gpu_ptr, Args ... args) |
Condition, Before, After and Funcs must all be functor classes.
They will receive two unsigned ints for grid size and block index (for simplicity, we only handle 1D grids), a reference to a mutable Condition (except for Condition) and any arguments you pass to the execute of this return. The functions should not use the actual block indices, but the thread indices inside the block are respected. Condition must return a boolean, with true meaning we have reached the end of the iterations, all others are void. Condition may be (locally) stateful as the same local instance is used throughout the iterations, while the others must be stateless (being constructed every iteration in the case of Funcs).
Definition at line 266 of file IterateUntilCondition.h.
|
inlinestatic |
Definition at line 269 of file IterateUntilCondition.h.