#include "gromacs/mdtypes/commrec.h"
This file declares functions for timing the load imbalance due to domain decomposition.
- Author
- Berk Hess hess@.nosp@m.kth..nosp@m.se
Tells if we should open the balancing region.
Enumerator |
---|
no |
Do not allow opening an already open region.
|
yes |
Allow opening an already open region.
|
Tells if we had to wait for a GPU to finish computation.
Enumerator |
---|
no |
The GPU finished computation before the CPU needed the result.
|
yes |
We had to wait for the GPU to finish computation.
|
Returns a pointer to a constructed BalanceRegion
struct.
Should be replaced by a proper constructor once BalanceRegion is a proper class (requires restructering in domdec.cpp).
void ddReopenBalanceRegionCpu |
( |
const gmx_domdec_t * |
dd | ) |
|
Re-open the, already opened, load balance timing region.
This function should be called after every MPI communication that occurs in the main MD loop. Note that the current setup assumes that all MPI communication acts like a global barrier. But if some ranks don't participate in communication or if some ranks communicate faster with neighbors than others, the obtained timings might not accurately reflect the computation time.
- Parameters
-
[in,out] | dd | The domain decomposition struct |