#include <parallel_reduce.h>
Public Member Functions | |
virtual ReduceType | getType () const |
Virtual function indicating the type of strategy. | |
virtual void | initialize (int bodySize, int maxBodyRepetitionCount, const IntVector &batchRepetitionCount) |
Virtual function that initializes the strategy. Essentially, this is where the strides/sizes are deteremined. | |
StridedReduceStrategy () | |
virtual | ~StridedReduceStrategy () |
Strided reduction strategy.
Repeated body entries within a batch are strided, e.g. ABC**ABC**ABC**ABC**ABC**ABC where * indicates padding for alignment
Definition at line 142 of file parallel_reduce.h.
Definition at line 147 of file parallel_reduce.h.
virtual parallel_ode::StridedReduceStrategy::~StridedReduceStrategy | ( | ) | [inline, virtual] |
Definition at line 148 of file parallel_reduce.h.
virtual ReduceType parallel_ode::StridedReduceStrategy::getType | ( | ) | const [inline, virtual] |
Virtual function indicating the type of strategy.
Reimplemented from parallel_ode::ReduceStrategy.
Definition at line 151 of file parallel_reduce.h.
void parallel_ode::StridedReduceStrategy::initialize | ( | int | bodySize, |
int | maxBodyRepetitionCount, | ||
const IntVector & | batchRepetitionCount | ||
) | [virtual] |
Virtual function that initializes the strategy. Essentially, this is where the strides/sizes are deteremined.
bodySize | The number of bodies |
maxBodyRepetitionCount | The maximum number of times a body is repeated for all batches |
batchRepetitionCount | The maximum number of times a body is repeated in each batch |
Reimplemented from parallel_ode::ReduceStrategy.
Definition at line 31 of file parallel_reduce.cpp.