|
ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
#include <FlopCounter.h>
Public Member Functions | |
| FlopCounter (double cutoffRadius, double LJcutoffRadius) | |
| Set up the counter. More... | |
| ~FlopCounter () | |
| void | initTraversal () |
| Initializes the internal counters. More... | |
| void | preprocessCell (ParticleCell &cell) |
| Only pass through to child. More... | |
| double | processSingleMolecule (Molecule *, ParticleCell &) |
| void | processCell (ParticleCell &cell) |
| Count flops for this cell. More... | |
| void | processCellPair (ParticleCell &c1, ParticleCell &c2, bool sumAll=false) |
| void | postprocessCell (ParticleCell &cell) |
| Only pass through to child. More... | |
| void | endTraversal () |
| Print results. More... | |
| double | getTotalFlopCount () const |
| double | getTotalMoleculeDistanceFlopCount () const |
| void | resetCounters () |
| double | getMyFlopCount () const |
| void | printStats () const |
Public Member Functions inherited from CellProcessor | |
| CellProcessor (const double cutoffRadius, const double LJCutoffRadius) | |
| virtual | ~CellProcessor () |
| double | getCutoffRadius () const |
| double | getLJCutoffRadius () const |
| void | setCutoffRadius (const double c) |
| void | setLJCutoffRadius (const double ljc) |
| double | getCutoffRadiusSquare () const |
| double | getLJCutoffRadiusSquare () const |
| void | setCutoffRadiusSquare (const double c) |
| void | setLJCutoffRadiusSquare (const double ljc) |
Additional Inherited Members | |
Protected Attributes inherited from CellProcessor | |
| double | _cutoffRadiusSquare |
| double | _LJCutoffRadiusSquare |
| FlopCounter::FlopCounter | ( | double | cutoffRadius, |
| double | LJcutoffRadius | ||
| ) |
Set up the counter.
The CellProcessor is called after counting has been finished and
the runtime of the CellProcessor is measured. The CellProcessor is deleted
when LJFlopCounter is destructed.
| cutoffRadius | Must be the same as the cutoff radius for the CellProcessor. |
| LJcutoffRadius | Must be the same as the LJ cutoff radius for the CellProcessor. |
| FlopCounter::~FlopCounter | ( | ) |
free threadData
|
virtual |
Print results.
Implements CellProcessor.
|
virtual |
Initializes the internal counters.
Implements CellProcessor.
|
inlinevirtual |
Only pass through to child.
Implements CellProcessor.
|
inlinevirtual |
Only pass through to child.
Implements CellProcessor.
|
virtual |
Count flops for this cell.
Implements CellProcessor.
|
virtual |
Called for each cell pair within the cutoff radius. Called exactly once per pair (i.e. pairs are not ordered).
Implements CellProcessor.
|
inlinevirtual |
Implements CellProcessor.