struct pot::OracleBatchLayout¶
Overview¶
How a step’s oracle points are shared out. More…
#include <gpr/potentials/OracleBatch.h>
struct OracleBatchLayout {
// fields
int rank = 0;
int nprocs = 1;
Eigen::Index chunk = 0;
int owner_offset = 0;
OracleBatchComm comm = oracleBatchWorld();
// methods
static OracleBatchLayout world(Eigen::Index chunk = 0, int owner_offset = 0);
};
Detailed Documentation¶
How a step’s oracle points are shared out.
Fields¶
Eigen::Index chunk = 0
0: point i belongs to rank (i + owner_offset) % nprocs and every point a rank owns forms one batch call. An engine that loops over its batch then gives the same values at every layout. K > 0: contiguous chunks of K points, chunk c owned by rank (c + owner_offset) % nprocs, one batch call per chunk. An engine whose batched forward depends on the batch composition (a UMA band package traced at a fixed batch size) then sees the same chunks at every layout once K is that batch size.
int owner_offset = 0
Rotation of the owner map, applied when more than one point is shared out. A lone point always sits on the root, so the root’s engine instance stays the warm one for the common single call.
Methods¶
static OracleBatchLayout world(Eigen::Index chunk = 0, int owner_offset = 0)
The layout of the running communicator (rank 0 of 1 without MPI).